File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -16,15 +16,13 @@ PHP_MEMORY_LIMIT=${PHP_MEMORY_LIMIT:-512}
1616sed -e " s~%%MEMORY_LIMIT%%~${PHP_MEMORY_LIMIT} m~" \
1717 /opt/etc/custom-php.ini.tpl > /usr/local/etc/php/conf.d/custom-php.ini
1818
19- if [ " $LARAVEL_HORIZON " = false ]; then
19+ if [ " $LARAVEL_HORIZON " = " true" ] || [ " $LARAVEL_HORIZON " = " 1" ] ; then
20+ cp /etc/supervisor/conf.d/laravel-horizon.conf.tpl /etc/supervisor/supervisord.conf
21+ else
2022 sed -e " s~%%QUEUE_CONNECTION%%~$QUEUE_CONNECTION ~" \
2123 -e " s~%%QUEUE_NAME%%~$QUEUE_NAME ~" \
2224 -e " s~%%MEMORY_LIMIT%%~$PHP_MEMORY_LIMIT ~" \
2325 /etc/supervisor/conf.d/laravel-worker.conf.tpl > /etc/supervisor/supervisord.conf
2426fi
2527
26- if [ " $LARAVEL_HORIZON " = true ]; then
27- cp /etc/supervisor/conf.d/laravel-horizon.conf.tpl /etc/supervisor/supervisord.conf
28- fi
29-
3028exec supervisord --nodaemon --configuration /etc/supervisor/supervisord.conf
You can’t perform that action at this time.
0 commit comments