@@ -16,12 +16,12 @@ _migrate() {
1616 local count=0
1717 local timeout=20
1818
19- while [ $count -lt " ${ timeout} " ]; do
19+ while [ " $count " -lt " $timeout " ]; do
2020 php -f /common/test_db_connection.php > /dev/null 2>&1
2121
2222 status=$?
2323
24- if [ $status -eq 0 ]; then
24+ if [ " $status " -eq 0 ]; then
2525 echo " ✅ Database connection successful."
2626 break
2727 fi
@@ -31,7 +31,7 @@ _migrate() {
3131 sleep 1
3232 done
3333
34- if [ $count -eq " ${ timeout} " ]; then
34+ if [ " $count " -eq " $timeout " ]; then
3535 echo " ⛔ Database connection failed after multiple attempts."
3636 exit 1
3737 fi
@@ -41,7 +41,7 @@ _migrate() {
4141}
4242
4343_setup () {
44- if [ -n " ${ CONTAINER_MANUAL_SETUP} " ]; then
44+ if [ -n " $CONTAINER_MANUAL_SETUP " ]; then
4545 echo " ⏭: Skipping setup..."
4646
4747 return
@@ -63,30 +63,30 @@ _setup() {
6363}
6464
6565_run () {
66- case " ${ CONTAINER_MODE} " in
66+ case " $CONTAINER_MODE " in
6767 app)
6868 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 "
7070 ;;
7171 worker)
7272 echo " ⏳ Running the queue..."
73- exec " ${ARTISAN} " queue:work -vv \
73+ exec ${ARTISAN} queue:work -vv \
7474 --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 "
7979 ;;
8080 horizon)
8181 echo " Running horizon..."
82- exec " ${ARTISAN} " horizon
82+ exec ${ARTISAN} horizon
8383 ;;
8484 scheduler)
8585 echo " 📆 Running scheduled tasks..."
86- exec " ${ARTISAN} " schedule:work --verbose --no-interaction
86+ exec ${ARTISAN} schedule:work --verbose --no-interaction
8787 ;;
8888 * )
89- echo " ⛔ Could not match the container mode [${ CONTAINER_MODE} ]"
89+ echo " ⛔ Could not match the container mode [$CONTAINER_MODE ]"
9090 exit 1
9191 ;;
9292 esac
0 commit comments