Fix production 500 error: remove build-time config:cache and fix runtime database permissions and seeding

This commit is contained in:
2026-10-31 15:41:27 +01:00
parent a888fe3695
commit 69f1800fcd
3 changed files with 50 additions and 7 deletions
+2 -6
View File
@@ -10,12 +10,8 @@ cmds = [
[phases.build]
cmds = [
"npm run build",
"php artisan config:cache",
"php artisan route:cache",
"php artisan view:cache"
"npm run build"
]
[start]
cmd = "php artisan storage:link && touch database/database.sqlite && php artisan migrate --force && php artisan serve --host=0.0.0.0 --port=80"
cmd = "php artisan storage:link && mkdir -p database storage/framework/cache storage/framework/sessions storage/framework/views storage/logs && touch database/database.sqlite && chmod -R 777 database storage && php artisan migrate --force && php artisan db:seed --force && php artisan config:clear && php artisan config:cache && php artisan route:cache && php artisan view:cache && php artisan serve --host=0.0.0.0 --port=80"