Fix production 500 error: remove build-time config:cache and fix runtime database permissions and seeding
This commit is contained in:
+2
-6
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user