diff --git a/start b/start index 13ee5e7..86bae8e 100755 --- a/start +++ b/start @@ -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