File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -8,8 +8,20 @@ if [ -z "$QUEUE_NAME" ]; then
88 QUEUE_NAME=" default"
99fi
1010
11- sed -e " s~%%QUEUE_CONNECTION%%~$QUEUE_CONNECTION ~" \
12- -e " s~%%QUEUE_NAME%%~$QUEUE_NAME ~" \
13- /etc/supervisor/conf.d/laravel-worker.conf.tpl > /etc/supervisor/supervisord.conf
11+ if [ -z " $LARAVEL_HORIZON " ]; then
12+ LARAVEL_HORIZON=false
13+ fi
14+
15+ if [ " $LARAVEL_HORIZON " = false ]; then
16+ sed -e " s~%%QUEUE_CONNECTION%%~$QUEUE_CONNECTION ~" \
17+ -e " s~%%QUEUE_NAME%%~$QUEUE_NAME ~" \
18+ /etc/supervisor/conf.d/laravel-worker.conf.tpl > /etc/supervisor/supervisord.conf
19+ fi
20+
21+ if [ " $LARAVEL_HORIZON " = true ]; then
22+ sed -e " s~%%QUEUE_CONNECTION%%~$QUEUE_CONNECTION ~" \
23+ -e " s~%%QUEUE_NAME%%~$QUEUE_NAME ~" \
24+ /etc/supervisor/conf.d/laravel-horizon.conf.tpl > /etc/supervisor/supervisord.conf
25+ fi
1426
1527supervisord --nodaemon --configuration /etc/supervisor/supervisord.conf
You can’t perform that action at this time.
0 commit comments