Skip to content

Instantly share code, notes, and snippets.

@shavit
Created January 11, 2016 14:44
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 shavit/4d791532050ead8f7be5 to your computer and use it in GitHub Desktop.
Save shavit/4d791532050ead8f7be5 to your computer and use it in GitHub Desktop.
Run Go Revel app in production as a service
start on runlevel [2345]
stop on runlevel [!2345]
respawn
env PORT=<APP-PORT>
setuid <APP-NAME>
chdir /<APP-PATH>
# run the application
# /<APP-PATH>/dist/run.sh
exec dist/run.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment