| #! /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