R
Railway5mo ago
Sid

How to set up a staging -> production workflow?

I'm trying to set up a workflow whereby a push to master will build and auto deploy to our staging environment on railway but not autodeploy on our production environment until we approve the staging environment works correctly. How can I go about doing this in railway? The docs show a "disable trigger" button but the UI has changed, and I can't find a "deploy" button anywhere
10 Replies
Percy
Percy5mo ago
Project ID: N/A
Sid
Sid5mo ago
N/A
Brody
Brody5mo ago
the branch setting can be found in the service settings
No description
Sid
Sid5mo ago
So are we expected to just disconnect and then re-connect to re-deploy?
Brody
Brody5mo ago
you push to the connected branch to deploy the code
Sid
Sid5mo ago
Right, but I want a workflow whereby I can push to the branch but not have it auto-deployed and instead wait for an approval or a "deploy" button to be clicked I know I can use a staging and master branch but was hoping to avoid doing that
Brody
Brody5mo ago
in this scenario you would need two branches theres also PR environments https://docs.railway.app/guides/environments#enable-pr-environments not sure if that helps here though
Sid
Sid5mo ago
Ah ok thats a shame, thanks for your help Would be good to get a manual deploy button in the future to support this kind of workflow
Brody
Brody5mo ago
i've been asking for a manual deploy / re-deploy for a while now i even made this https://bookmarklets.up.railway.app/service-redeploy/ but not sure if that solves your request, since you need a connected branch
Sid
Sid5mo ago
thanks i'll check this out
Want results from more Discord servers?
Add your server
More Posts