@@ -16,12 +16,12 @@ _migrate() {
16
16
local count=0
17
17
local timeout=20
18
18
19
- while [ $count -lt " ${ timeout} " ]; do
19
+ while [ " $count " -lt " $timeout " ]; do
20
20
php -f /common/test_db_connection.php > /dev/null 2>&1
21
21
22
22
status=$?
23
23
24
- if [ $status -eq 0 ]; then
24
+ if [ " $status " -eq 0 ]; then
25
25
echo " ✅ Database connection successful."
26
26
break
27
27
fi
@@ -31,7 +31,7 @@ _migrate() {
31
31
sleep 1
32
32
done
33
33
34
- if [ $count -eq " ${ timeout} " ]; then
34
+ if [ " $count " -eq " $timeout " ]; then
35
35
echo " ⛔ Database connection failed after multiple attempts."
36
36
exit 1
37
37
fi
@@ -41,7 +41,7 @@ _migrate() {
41
41
}
42
42
43
43
_setup () {
44
- if [ -n " ${ CONTAINER_MANUAL_SETUP} " ]; then
44
+ if [ -n " $CONTAINER_MANUAL_SETUP " ]; then
45
45
echo " ⏭: Skipping setup..."
46
46
47
47
return
@@ -63,30 +63,30 @@ _setup() {
63
63
}
64
64
65
65
_run () {
66
- case " ${ CONTAINER_MODE} " in
66
+ case " $CONTAINER_MODE " in
67
67
app)
68
68
echo " 🚀 Running octane..."
69
- exec " ${ARTISAN} " octane:frankenphp --host=0.0.0.0 --port=" ${ CONTAINER_PORT} "
69
+ exec ${ARTISAN} octane:frankenphp --host=0.0.0.0 --port=" $CONTAINER_PORT "
70
70
;;
71
71
worker)
72
72
echo " ⏳ Running the queue..."
73
- exec " ${ARTISAN} " queue:work -vv \
73
+ exec ${ARTISAN} queue:work -vv \
74
74
--no-interaction \
75
- --tries=" ${ CONTAINER_WORKER_TRIES} " \
76
- --sleep=" ${ CONTAINER_WORKER_SLEEP} " \
77
- --timeout=" ${ CONTAINER_WORKER_TIMEOUT} " \
78
- --delay=" ${ CONTAINER_WORKER_DELAY} "
75
+ --tries=" $CONTAINER_WORKER_TRIES " \
76
+ --sleep=" $CONTAINER_WORKER_SLEEP " \
77
+ --timeout=" $CONTAINER_WORKER_TIMEOUT " \
78
+ --delay=" $CONTAINER_WORKER_DELAY "
79
79
;;
80
80
horizon)
81
81
echo " Running horizon..."
82
- exec " ${ARTISAN} " horizon
82
+ exec ${ARTISAN} horizon
83
83
;;
84
84
scheduler)
85
85
echo " 📆 Running scheduled tasks..."
86
- exec " ${ARTISAN} " schedule:work --verbose --no-interaction
86
+ exec ${ARTISAN} schedule:work --verbose --no-interaction
87
87
;;
88
88
* )
89
- echo " ⛔ Could not match the container mode [${ CONTAINER_MODE} ]"
89
+ echo " ⛔ Could not match the container mode [$CONTAINER_MODE ]"
90
90
exit 1
91
91
;;
92
92
esac
0 commit comments