diff --git a/Procfile b/Procfile deleted file mode 100644 index e1d4131..0000000 --- a/Procfile +++ /dev/null @@ -1 +0,0 @@ -web: node app.js diff --git a/backup.sh b/backup.sh deleted file mode 100644 index e7afc56..0000000 --- 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 e69de29..0000000 diff --git a/hackmd b/hackmd deleted file mode 100644 index 9005e2a..0000000 --- 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 e69de29..0000000 diff --git a/processes.json b/processes.json deleted file mode 100644 index 7f87404..0000000 --- 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 386ce42..0000000 --- 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