File tree 1 file changed +3
-5
lines changed
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}
16
16
sed -e " s~%%MEMORY_LIMIT%%~${PHP_MEMORY_LIMIT} m~" \
17
17
/opt/etc/custom-php.ini.tpl > /usr/local/etc/php/conf.d/custom-php.ini
18
18
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
20
22
sed -e " s~%%QUEUE_CONNECTION%%~$QUEUE_CONNECTION ~" \
21
23
-e " s~%%QUEUE_NAME%%~$QUEUE_NAME ~" \
22
24
-e " s~%%MEMORY_LIMIT%%~$PHP_MEMORY_LIMIT ~" \
23
25
/etc/supervisor/conf.d/laravel-worker.conf.tpl > /etc/supervisor/supervisord.conf
24
26
fi
25
27
26
- if [ " $LARAVEL_HORIZON " = true ]; then
27
- cp /etc/supervisor/conf.d/laravel-horizon.conf.tpl /etc/supervisor/supervisord.conf
28
- fi
29
-
30
28
exec supervisord --nodaemon --configuration /etc/supervisor/supervisord.conf
You can’t perform that action at this time.
0 commit comments