diff options
-rw-r--r-- | Procfile | 1 | ||||
-rw-r--r-- | backup.sh | 7 | ||||
-rw-r--r-- | backups/.keep | 0 | ||||
-rw-r--r-- | hackmd | 11 | ||||
-rw-r--r-- | logs/.keep | 0 | ||||
-rw-r--r-- | processes.json | 19 | ||||
-rw-r--r-- | run.sh | 8 |
7 files changed, 0 insertions, 46 deletions
diff --git a/Procfile b/Procfile deleted file mode 100644 index e1d4131b..00000000 --- a/Procfile +++ /dev/null @@ -1 +0,0 @@ -web: node app.js diff --git a/backup.sh b/backup.sh deleted file mode 100644 index e7afc560..00000000 --- a/backup.sh +++ /dev/null @@ -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
\ No newline at end of file diff --git a/backups/.keep b/backups/.keep deleted file mode 100644 index e69de29b..00000000 --- a/backups/.keep +++ /dev/null diff --git a/hackmd b/hackmd deleted file mode 100644 index 9005e2aa..00000000 --- a/hackmd +++ /dev/null @@ -1,11 +0,0 @@ -/home/hackmd/logs/*.log { - daily - rotate 365 - missingok - notifempty - compress - sharedscripts - copytruncate - dateext - dateformat %Y-%m-%d -}
\ No newline at end of file diff --git a/logs/.keep b/logs/.keep deleted file mode 100644 index e69de29b..00000000 --- a/logs/.keep +++ /dev/null diff --git a/processes.json b/processes.json deleted file mode 100644 index 7f874049..00000000 --- a/processes.json +++ /dev/null @@ -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" - } - }] -}
\ No newline at end of file diff --git a/run.sh b/run.sh deleted file mode 100644 index 386ce427..00000000 --- a/run.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/bash -forever stop hackmd -DATABASE_URL='change this' \ -MONGOLAB_URI='change this' \ -PORT='80' \ -SSLPORT='443' \ -DOMAIN='change this' \ -forever -a --uid hackmd -l ./logs/hackmd_log.log -o ./logs/hackmd_out.log -e ./logs/hackmd_error.log start app.js
\ No newline at end of file |