Prepare Laravel API for Railway
This commit is contained in:
13
railway.json
Normal file
13
railway.json
Normal 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
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user