3 years ago
I want my deployment to attempt to migrate the database whenever there's a new deployment, the command needed to run is
./vendor/bin/phinx migrate
How do I set that?
24 Replies
3 years ago
how do you currently set a start command?
nixpacks or Dockerfile?
3 years ago
what's your current start command? and where have you set it?
3 years ago
what is the start command that's being used
3 years ago
the build table at the top of the build logs
{
"$schema": "https://railway.app/railway.schema.json",
"build": {
"builder": "NIXPACKS"
},
"deploy": {
"numReplicas": 1,
"sleepApplication": false,
"restartPolicyType": "ON_FAILURE",
"restartPolicyMaxRetries": 10
}
}
3 years ago
no
3 years ago
I can't, I don't work for railway
3 years ago
yes, now you can update your start command in the service settings with the following format -
&& sans angle brackets
./vendor/bin/phinx migrate && node /assets/scripts/prestart.mjs /app/nginx.template.conf/nginx.conf && (php-fpm -y /assets/php-fpm.conf & nginx -c/nginx.conf)
3 years ago
correct
3 years ago
no problem! did that work for you?