Skip to content

Instantly share code, notes, and snippets.

@lajunta
Created October 23, 2013 06:54
Show Gist options
  • Save lajunta/7113748 to your computer and use it in GitHub Desktop.
Save lajunta/7113748 to your computer and use it in GitHub Desktop.
# Ubuntu upstart file at /etc/init/penroll.conf
start on runlevel [2345] or net-device-up IFACE!=lo
stop on runlevel [06]
env PATH=/bin:/sbin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin:/usr/local/rvm/bin
chdir "/data/sites/dc"
script
#rvm 2.0.0 exec bundle exec puma -e production -b unix:///tmp/dc.sock
rvm 2.0.0 exec bundle exec puma -p 9090 -C "/data/sites/dc/config/puma.conf"
end script
respawn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment