Run migrations during Railway deploy
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user