diff --git a/railway.json b/railway.json index c780d22..a91c9a0 100644 --- a/railway.json +++ b/railway.json @@ -4,7 +4,7 @@ "builder": "RAILPACK" }, "deploy": { - "startCommand": "php artisan serve --host=0.0.0.0 --port=$PORT", + "startCommand": "php artisan migrate --force && php artisan serve --host=0.0.0.0 --port=${PORT:-8000}", "healthcheckPath": "/health", "healthcheckTimeout": 300, "restartPolicyType": "ON_FAILURE",