diff --git a/railway.json b/railway.json index 117d8cd..a323fc4 100644 --- a/railway.json +++ b/railway.json @@ -4,10 +4,11 @@ "builder": "RAILPACK" }, "deploy": { - "startCommand": "php artisan migrate --force && php artisan serve --host=0.0.0.0 --port=${PORT:-8000}", + "preDeployCommand": "php artisan migrate --force", + "startCommand": "php artisan serve --host=0.0.0.0 --port=${PORT:-8000}", "healthcheckPath": "/health", "healthcheckTimeout": 600, "restartPolicyType": "ON_FAILURE", "restartPolicyMaxRetries": 10 } -} +} \ No newline at end of file