Skip to content

Instantly share code, notes, and snippets.

@mustmodify
Last active August 11, 2016 16:42
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 mustmodify/143adbfe32dc8befcfa2 to your computer and use it in GitHub Desktop.
Save mustmodify/143adbfe32dc8befcfa2 to your computer and use it in GitHub Desktop.
#! /bin/bash
export HOME=/home/jw
export RAILS_ENV=development
source /usr/local/share/chruby/chruby.sh
source /usr/local/share/chruby/auto.sh
# there is a .ruby-version under /projects/client/project but I've tried setting it here, too.
cd /projects/client/project && bundle exec puma -C /projects/client/project/config/puma.development.config
description "ProjectName - Development"
start on (local-filesystems and net-device-up IFACE=lo and runlevel [2345])
stop on (runlevel [!2345])
respawn
respawn limit 3 30
script
exec /bin/bash << EOT
/projects/client/project-http
EOT
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment