Added PHP_OPTIONS

This commit is contained in:
Deon George 2018-05-07 13:53:29 +10:00
parent ee72137f96
commit 9652a4baf9

4
start
View File

@ -23,12 +23,12 @@ if [ "${role}" = "app" ]; then
elif [ "$role" = "queue" ]; then
echo "Running the queue..."
php artisan queue:work --verbose --tries=${WORK_TRIES:-1} --timeout=${WORK_TIMEOUT:-90} ${WORK_QUEUES:+--queue=${WORK_QUEUES}} ${WORK_MEMORY:+--memory=${WORK_MEMORY}}
php ${PHP_OPTIONS} artisan queue:work --verbose --tries=${WORK_TRIES:-1} --timeout=${WORK_TIMEOUT:-90} ${WORK_QUEUES:+--queue=${WORK_QUEUES}} ${WORK_MEMORY:+--memory=${WORK_MEMORY}}
elif [ "$role" = "scheduler" ]; then
while [ true ]; do
php artisan schedule:run --verbose --no-interaction &
php ${PHP_OPTIONS} artisan schedule:run --verbose --no-interaction &
sleep 60
done