Skip to content

Commit 829cafe

Browse files
committed
wip
1 parent 5e5844a commit 829cafe

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

  • common/etc/s6-overlay/s6-rc.d
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/command/with-contenv sh
22

33
if [ "$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
1212
else
13-
echo "Queue is disabled"
13+
echo "Queue is disabled"
1414
s6-svc -Od .
1515
exit 0
1616
fi
Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
#!/command/with-contenv sh
22

33
if [ "$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
69
else
7-
echo "Schedule is disabled"
10+
echo "Schedule is disabled"
811
s6-svc -Od .
912
exit 0
1013
fi

0 commit comments

Comments
 (0)