Skip to content

Instantly share code, notes, and snippets.

@lajunta
Created October 23, 2013 14:11
Show Gist options
  • Save lajunta/7119525 to your computer and use it in GitHub Desktop.
Save lajunta/7119525 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/dljy"
script
#rvm 1.9.3 exec bundle exec puma -e production -b unix:///tmp/dljy.sock
rvm 2.0.0 exec bundle exec puma -p 9999 -C /data/sites/dljy/config/puma.conf
end script
respawn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment