add script to set process concurrency on start/restart/run from config

This commit is contained in:
Adam Cooke
2017-04-26 20:48:04 +01:00
parent 8da33ba58e
commit ff645a6677
4 changed files with 24 additions and 0 deletions
+3
View File
@@ -30,6 +30,7 @@ cd $ROOT_DIR
# Run the right command
case "$1" in
start)
run "bundle exec ruby script/update_process_concurrency.rb"
run "procodile start"
;;
@@ -38,6 +39,7 @@ case "$1" in
;;
restart)
run "bundle exec ruby script/update_process_concurrency.rb"
run "procodile restart"
;;
@@ -46,6 +48,7 @@ case "$1" in
;;
run)
run "bundle exec ruby script/update_process_concurrency.rb"
run "LOG_TO_STDOUT=1 procodile start -f --no-respawn --stop-when-none"
;;