2 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
2 years ago
how do you currently set a start command?
nixpacks or Dockerfile?
2 years ago
what's your current start command? and where have you set it?
2 years ago
what is the start command that's being used
2 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
}
}
2 years ago
no
Perhaps you can check my deployment ID: 2774c7ec-82f8-4c03-9263-4983a9fe6df5
2 years ago
I can't, I don't work for railway
2 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)
2 years ago
correct
2 years ago
no problem! did that work for you?
