run.sh: stop unused pm2 daemon leftover from nami initialize

This commit is contained in:
Sameer Naik
2017-04-12 16:51:55 +05:30
parent e830e05842
commit 76c9c31fdb

View File

@@ -6,6 +6,9 @@ USER=ghost
export NODE_ENV=production
# drupal initialization leaves a running pm2 instance
gosu ${USER} /opt/bitnami/ghost/node_modules/pm2/bin/pm2 kill
info "Starting ghost..."
exec gosu ${USER} /opt/bitnami/ghost/node_modules/pm2/bin/pm2 start --merge-logs --no-daemon \
-p /opt/bitnami/ghost/tmp/pids/ghost.pid \