Skip to content

Commit cb852cd

Browse files
authored
chore: use artisan script instead of building the path every time (#9)
1 parent 96a79b1 commit cb852cd

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

common/etc/entrypoint.d/99-laravel-about.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ script_name="laravel-about"
33

44
if [ "$DISABLE_DEFAULT_CONFIG" = "false" ]; then
55
# Check to see if an Artisan file exists and assume it means Laravel is configured.
6-
if [ -f "$APP_BASE_DIR/artisan" ] && [ "${AUTORUN_LARAVEL_ABOUT:=true}" = "true" ]; then
7-
php "$APP_BASE_DIR/artisan" about
6+
if [ "${AUTORUN_LARAVEL_ABOUT:=true}" = "true" ]; then
7+
artisan about
88
fi
99
else
1010
if [ "$LOG_OUTPUT_LEVEL" = "debug" ]; then

common/etc/s6-overlay/s6-rc.d/schedule/run

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
11
#!/command/with-contenv sh
22

33
if [ "$SCHEDULE_ENABLED" = "true" ]; then
4-
# Changing to the base directory prevents
5-
# the "Could not open input file: artisan" error
6-
cd $APP_BASE_DIR
74
echo "✅ Schedule is enabled"
8-
php artisan schedule:work --whisper
5+
artisan schedule:work --whisper
96
else
107
echo "❌ Schedule is disabled"
118
s6-svc -Od .

0 commit comments

Comments
 (0)