We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbab9ff commit 15616b3Copy full SHA for 15616b3
init.sh
@@ -0,0 +1,22 @@
1
+#!/bin/sh
2
+
3
+if [ -z "$CONNECTION" ]; then
4
+ echo "Missing environment variable: CONNECTION"
5
+ exit 1
6
+fi
7
8
+if [ -Z "$QUEUE" ]; then
9
+ QUEUE="default"
10
11
12
+sed -e "s~%%CONNECTION%%~$CONNECTION~" \
13
+ -e "s~%%QUEUE%%~$QUEUE~" \
14
+ /etc/supervisor/conf.d/laravel-worker.conf.tpl > /etc/supervisor/supervisord.conf
15
16
+rm /etc/supervisor/conf.d/laravel-worker.conf.tpl
17
18
+# Debugging purpose
19
+#cat /etc/supervisor/supervisord.conf
20
21
+supervisord --nodaemon --configuration /etc/supervisor/supervisord.conf
22
0 commit comments