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

Version Path
prun-ops-0.3.4 lib/capistrano/config/templates/app_init.sh.erb
prun-ops-0.3.3 lib/capistrano/config/templates/app_init.sh.erb
prun-ops-0.3.2 lib/capistrano/config/templates/app_init.sh.erb
prun-ops-0.3.1 lib/capistrano/config/templates/app_init.sh.erb
prun-ops-0.3.0 lib/capistrano/config/templates/app_init.sh.erb
prun-ops-0.2.18 lib/capistrano/config/templates/app_init.sh.erb
prun-ops-0.2.17 lib/capistrano/config/templates/app_init.sh.erb
prun-ops-0.2.16 lib/capistrano/config/templates/app_init.sh.erb
prun-ops-0.2.15 lib/capistrano/config/templates/app_init.sh.erb
prun-ops-0.2.14 lib/capistrano/config/templates/app_init.sh.erb
prun-ops-0.2.13 lib/capistrano/config/templates/app_init.sh.erb
prun-ops-0.2.12 lib/capistrano/config/templates/app_init.sh.erb
prun-ops-0.2.11 lib/capistrano/config/templates/app_init.sh.erb
prun-ops-0.2.10 lib/capistrano/config/templates/app_init.sh.erb
prun-ops-0.2.9 lib/capistrano/config/templates/app_init.sh.erb
prun-ops-0.2.8 lib/capistrano/config/templates/app_init.sh.erb
prun-ops-0.2.7 lib/capistrano/config/templates/app_init.sh.erb
prun-ops-0.2.6 lib/capistrano/config/templates/app_init.sh.erb
prun-ops-0.2.4 lib/capistrano/config/templates/app_init.sh.erb
prun-ops-0.2.3 lib/capistrano/config/templates/app_init.sh.erb