Skip to content

Instantly share code, notes, and snippets.

@malditogeek
Last active August 29, 2015 14:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save malditogeek/5bec34c2709282f13e48 to your computer and use it in GitHub Desktop.
Save malditogeek/5bec34c2709282f13e48 to your computer and use it in GitHub Desktop.
start on runlevel [2345]
pre-start script
bash << "EOF"
mkdir -p /var/apps/logs
chown -R deploy /var/apps/logs
EOF
end script
start on (started network-interface
or started network-manager
or started networking)
stop on (stopping network-interface
or stopping network-manager
or stopping networking)
stop on runlevel [016]
respawn
setuid deploy
setgid deploy
env NODE_ENV=production
env PORT=5000
env TW_CONSUMER_KEY=""
env TW_CONSUMER_SECRET=""
env TW_TOKEN=""
env TW_TOKEN_SECRET=""
env GA=""
env COOKIE_SECRET=""
chdir /var/apps/vmux
exec /var/apps/vmux/node_modules/coffee-script/bin/coffee /var/apps/vmux/app.coffee >> /var/apps/logs/vmux.log 2>&1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment