Sha256: 3259e9c6abbdd607d5599bc2ee14fc5718c2b5f7468dc4d273604fe9bb49726a
Contents?: true
Size: 485 Bytes
Versions: 23
Compression:
Stored size: 485 Bytes
Contents
#!/bin/sh # Starts and stops $APP # Adding a Service to Default runlevels # update-rc.d $APP defaults # APP=<%= fetch :application%> ENV=<%= fetch :stage%> case "$1" in start) cd /var/www/$APP/current && RAILS_ENV=$ENV bundle exec thin start -C /etc/thin/$APP.yml ;; stop) cd /var/www/$APP/current && RAILS_ENV=$ENV bundle exec thin stop -C /etc/thin/$APP.yml ;; restart) $0 stop $0 start ;; *) echo "Usage: $0 {start|stop|restart|status}" exit 1 esac
Version data entries
23 entries across 23 versions & 1 rubygems