mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
This commit is contained in:
parent
cf63039bc3
commit
f29c770ef3
1 changed files with 2 additions and 2 deletions
|
@ -23,6 +23,7 @@ stop on (stopping workers or runlevel [06])
|
||||||
# change to match your deployment user
|
# change to match your deployment user
|
||||||
setuid deploy
|
setuid deploy
|
||||||
setgid deploy
|
setgid deploy
|
||||||
|
env HOME=/home/deploy
|
||||||
|
|
||||||
respawn
|
respawn
|
||||||
respawn limit 3 30
|
respawn limit 3 30
|
||||||
|
@ -35,12 +36,11 @@ instance $index
|
||||||
script
|
script
|
||||||
# this script runs in /bin/sh by default
|
# this script runs in /bin/sh by default
|
||||||
# respawn as bash so we can source in rbenv
|
# respawn as bash so we can source in rbenv
|
||||||
exec /bin/bash <<EOT
|
exec /bin/bash <<'EOT'
|
||||||
# use syslog for logging
|
# use syslog for logging
|
||||||
exec &> /dev/kmsg
|
exec &> /dev/kmsg
|
||||||
|
|
||||||
# pull in system rbenv
|
# pull in system rbenv
|
||||||
export HOME=/home/deploy
|
|
||||||
source /etc/profile.d/rbenv.sh
|
source /etc/profile.d/rbenv.sh
|
||||||
|
|
||||||
cd /opt/theclymb/current
|
cd /opt/theclymb/current
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue