Files
containers/bitnami/ghost/0/rootfs/run.sh

17 lines
464 B
Bash
Executable File

#!/bin/bash
. /opt/bitnami/base/functions
. /opt/bitnami/base/helpers
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 \
-l /opt/bitnami/ghost/logs/ghost.log \
/opt/bitnami/ghost/index.js