How to disable auto-deployment?
mehabakshii
HOBBYOP

8 months ago

Hi! I have a pretty simple repo setup connected to Railway and just one branch. I'd like the following behavior:

  • Auto-deploy new commits from my repo to my dev environment

  • Manually kick off production deployment to production from the same branch that dev is connected to

When I look at the settings UI - I don't see any way for me to disable automatically pushing changes to this environment. What's the recommended setup to enable this kind of flow? I imagine it's pretty common slightly_smiling_face emoji

Attachments

Solved$10 Bounty

Pinned Solution

8 months ago

Hi,

Just keep auto-deploy enabled for your dev environment by linking it to your main branch. For production, disconnect the branch in the settings — this stops auto-deploys. Then, when you're ready to promote to prod, manually trigger a deploy from dev using the dashboard, CLI, or a GitHub Action. Does it work for your use case?

2 Replies

Railway
BOT

8 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


8 months ago

Hi,

Just keep auto-deploy enabled for your dev environment by linking it to your main branch. For production, disconnect the branch in the settings — this stops auto-deploys. Then, when you're ready to promote to prod, manually trigger a deploy from dev using the dashboard, CLI, or a GitHub Action. Does it work for your use case?


Status changed to Solved chandrika 8 months ago


Loading...