File tree Expand file tree Collapse file tree
common/etc/s6-overlay/s6-rc.d Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#!/command/with-contenv sh
22
33if [ "$QUEUE_ENABLED" = "true" ]; then
4- echo "Queue is enabled"
4+ echo "✅ Queue is enabled"
55 php "$APP_BASE_DIR/artisan" queue:work \
66 --max-jobs $QUEUE_MAX_JOBS \
77 --sleep $QUEUE_SLEEP \
@@ -10,7 +10,7 @@ if [ "$QUEUE_ENABLED" = "true" ]; then
1010 --tries $QUEUE_TRIES \
1111 --force
1212else
13- echo "Queue is disabled"
13+ echo "❌ Queue is disabled"
1414 s6-svc -Od .
1515 exit 0
1616fi
Original file line number Diff line number Diff line change 11#!/command/with-contenv sh
22
33if [ "$SCHEDULE_ENABLED" = "true" ]; then
4- echo "Schedule is enabled"
5- php "$APP_BASE_DIR/artisan" schedule:work --whisper
4+ # Changing to the base directory prevents
5+ # the "Could not open input file: artisan" error
6+ cd $APP_BASE_DIR
7+ echo "✅ Schedule is enabled"
8+ php artisan schedule:work --whisper
69else
7- echo "Schedule is disabled"
10+ echo "❌ Schedule is disabled"
811 s6-svc -Od .
912 exit 0
1013fi
You can’t perform that action at this time.
0 commit comments