Removed server deploy files, logs and backups directories.
Let user choose any daemon tools and paths as they like.
This commit is contained in:
parent
54e48d10ff
commit
69538a26ad
|
@ -1,7 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
path=./backups
|
|
||||||
today=$(date +"%Y%m%d")
|
|
||||||
timestamp=$(date +"%Y%m%d%H%M%S")
|
|
||||||
mkdir -p $path/$today
|
|
||||||
pg_dump hackmd > $path/$today/postgresql_$timestamp
|
|
||||||
mongodump -d hackmd -o $path/$today/mongodb_$timestamp
|
|
11
hackmd
11
hackmd
|
@ -1,11 +0,0 @@
|
||||||
/home/hackmd/logs/*.log {
|
|
||||||
daily
|
|
||||||
rotate 365
|
|
||||||
missingok
|
|
||||||
notifempty
|
|
||||||
compress
|
|
||||||
sharedscripts
|
|
||||||
copytruncate
|
|
||||||
dateext
|
|
||||||
dateformat %Y-%m-%d
|
|
||||||
}
|
|
|
@ -1,19 +0,0 @@
|
||||||
{
|
|
||||||
"apps": [{
|
|
||||||
"name": "hackmd",
|
|
||||||
"script": "app.js",
|
|
||||||
"exec_mode": "fork",
|
|
||||||
"instances": 1,
|
|
||||||
"error_file": "./logs/hackmd-err.log",
|
|
||||||
"out_file": "./logs/hackmd-out.log",
|
|
||||||
"pid_file": "./hackmd.pid",
|
|
||||||
"env": {
|
|
||||||
"NODE_ENV": "production",
|
|
||||||
"DATABASE_URL": "change this",
|
|
||||||
"MONGOLAB_URI": "change this",
|
|
||||||
"PORT": "80",
|
|
||||||
"SSLPORT": "443",
|
|
||||||
"DOMAIN": "change this"
|
|
||||||
}
|
|
||||||
}]
|
|
||||||
}
|
|
Loading…
Reference in a new issue