Prepare Laravel API for Railway

This commit is contained in:
2026-05-18 22:21:11 -05:00
parent 8e9211bafd
commit cef15730f3
5 changed files with 33 additions and 3 deletions

13
railway.json Normal file
View File

@@ -0,0 +1,13 @@
{
"$schema": "https://railway.com/railway.schema.json",
"build": {
"builder": "RAILPACK"
},
"deploy": {
"preDeployCommand": "php artisan migrate --force",
"healthcheckPath": "/api/health",
"healthcheckTimeout": 100,
"restartPolicyType": "ON_FAILURE",
"restartPolicyMaxRetries": 10
}
}