mirror of
https://github.com/shlinkio/shlink.git
synced 2025-02-25 18:45:27 -06:00
Ensured some dynamic RR config for prod env, based on env vars
This commit is contained in:
@@ -31,6 +31,11 @@ if [ $ENABLE_PERIODIC_VISIT_LOCATE ]; then
|
||||
/usr/sbin/crond &
|
||||
fi
|
||||
|
||||
# RoadRunner config needs these to have been set, so falling back to default values if not set yet
|
||||
export PORT="${PORT:-"8765"}"
|
||||
export WEB_WORKER_NUM="${WEB_WORKER_NUM:-"16"}"
|
||||
export TASK_WORKER_NUM="${TASK_WORKER_NUM:-"16"}"
|
||||
|
||||
if [ "$SHLINK_RUNTIME" == 'openswoole' ]; then
|
||||
# When restarting the container, openswoole might think it is already in execution
|
||||
# This forces the app to be started every second until the exit code is 0
|
||||
|
||||
Reference in New Issue
Block a user