The hashbang in Artisan doesn't work on windows, so we're forced to prefix with php
This commit is contained in:
parent
048a81f0e4
commit
66260a7382
3 changed files with 7 additions and 7 deletions
|
|
@ -14,10 +14,10 @@ if [ "${HORIZON_ENABLE,,}" = "on" ]; then
|
|||
fi
|
||||
if [ "${HORIZON_UI,,}" = "on" ]; then
|
||||
echo "[HORIZON] Publishing horizon frontend assets"
|
||||
artisan horizon:publish
|
||||
php artisan horizon:publish
|
||||
fi
|
||||
echo "[HORIZON] Running laravel horizon runner"
|
||||
cpulimit -l 30 -- artisan horizon
|
||||
cpulimit -l 30 -- php artisan horizon
|
||||
touch /var/lock/laravel_horizon_started
|
||||
else
|
||||
echo "[HORIZON] Horizon is not present."
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ if [ "${SCHEDULER_ENABLE,,}" = "on" ]; then
|
|||
echo "[SCHEDULER] Migrations complete, starting scheduler"
|
||||
fi
|
||||
while true; do
|
||||
artisan schedule:run
|
||||
php artisan schedule:run
|
||||
sleep 59;
|
||||
done
|
||||
else
|
||||
|
|
|
|||
|
|
@ -19,15 +19,15 @@ if [ "${MIGRATE_ENABLE,,}" = "on" ]; then
|
|||
touch /var/lock/laravel_migration_underway
|
||||
|
||||
if [ "${MIGRATE_CLEAN,,}" = "on" ]; then
|
||||
artisan migrate:fresh --force
|
||||
artisan migrate --force # First run will fail due to permissions. We can ignore, but need to migrate again to finish.
|
||||
php artisan migrate:fresh --force
|
||||
php artisan migrate --force # First run will fail due to permissions. We can ignore, but need to migrate again to finish.
|
||||
else
|
||||
# If we run this on first commit, it is the same as migrate:fresh, first run may fail and we need to try one more time.
|
||||
artisan migrate --force || artisan migrate --force
|
||||
php artisan migrate --force || php artisan migrate --force
|
||||
fi
|
||||
|
||||
if [ "${SEEDERS,,}" = "on" ]; then
|
||||
artisan db:seed -q
|
||||
php artisan db:seed -q
|
||||
fi
|
||||
|
||||
rm /var/lock/laravel_migration_underway
|
||||
|
|
|
|||
Loading…
Reference in a new issue