Commit 300acfc0 authored by Mateus Rambo Strey's avatar Mateus Rambo Strey

add env_vars to services

parent 629bf199
......@@ -3,6 +3,8 @@ source /home/.rvm/scripts/rvm
export PUMA_APP_DIR=/portalmec
source $PUMA_APP_DIR/config/env_vars.sh 2>/dev/null
option="${1}"
case ${option} in
......
......@@ -3,16 +3,18 @@ source /home/.rvm/scripts/rvm
export PUMA_APP_DIR=/portalmec
source $PUMA_APP_DIR/config/env_vars.sh 2>/dev/null
option="${1}"
case ${option} in
start)
cd $PUMA_APP_DIR
bundle exec sidekiq
exec bundle exec sidekiq
;;
stop)
cd $PUMA_APP_DIR
bundle exec sidekiqctl shared/pids/sidekiq.pid
bundle exec sidekiqctl stop shared/pids/sidekiq.pid
;;
*)
echo "`basename ${0}`:usage: [start] | [stop]"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment