Run migrations during Railway deploy

This commit is contained in:
2026-05-18 23:16:48 -05:00
parent 336c19b971
commit 4b8097e9f2

View File

@@ -5,6 +5,7 @@
}, },
"deploy": { "deploy": {
"startCommand": "php artisan serve --host=0.0.0.0 --port=$PORT", "startCommand": "php artisan serve --host=0.0.0.0 --port=$PORT",
"preDeployCommand": "php artisan migrate --force",
"healthcheckPath": "/health", "healthcheckPath": "/health",
"healthcheckTimeout": 300, "healthcheckTimeout": 300,
"restartPolicyType": "ON_FAILURE", "restartPolicyType": "ON_FAILURE",