foreman and user fixes
This commit is contained in:
parent
e5a40d941c
commit
efbae9d84e
1 changed files with 7 additions and 7 deletions
|
@ -3,9 +3,9 @@ set -e
|
|||
|
||||
case $1 in
|
||||
start)
|
||||
su app -c "cd /srv && foreman run -f /etc/Procfile install"
|
||||
su app -c "cd /srv && foreman run -f /etc/Procfile migrate"
|
||||
daemonize -c /srv -u app /usr/bin/foreman start -f /etc/Procfile rails
|
||||
su rails -c "foreman run -f /etc/Procfile -d /srv install"
|
||||
su rails -c "foreman run -f /etc/Procfile -d /srv migrate"
|
||||
daemonize -c /srv -u rails /usr/bin/foreman start -f /etc/Procfile -d /srv rails
|
||||
|
||||
;;
|
||||
stop)
|
||||
|
@ -13,7 +13,7 @@ case $1 in
|
|||
|
||||
;;
|
||||
reload)
|
||||
su app -c "cd /srv && foreman run -f /etc/Procfile install"
|
||||
su rails -c "foreman run -f /etc/Procfile -d /srv install"
|
||||
cat /srv/tmp/puma.pid | xargs -r kill -USR2
|
||||
|
||||
;;
|
||||
|
@ -23,8 +23,8 @@ case $1 in
|
|||
daemonize -c /srv \
|
||||
-p /tmp/prometheus.pid \
|
||||
-l /tmp/prometheus.pid \
|
||||
-u app \
|
||||
/usr/bin/foreman start -f /etc/Procfile prometheus
|
||||
-u rails \
|
||||
/usr/bin/foreman start -f /etc/Procfile -d /srv prometheus
|
||||
;;
|
||||
|
||||
prometheus-stop)
|
||||
|
@ -34,7 +34,7 @@ case $1 in
|
|||
|
||||
blazer)
|
||||
test -z "$2" || schedule="_${2}"
|
||||
su app -c "cd /srv && foreman run -f /etc/Procfile blazer${schedule}"
|
||||
su rails -c "foreman run -f /etc/Procfile -d /srv blazer${schedule}"
|
||||
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Reference in a new issue