Is there a way to not restart every commit on github?
cicerorph
HOBBYOP

a year ago

I wanted to implement a restart command to my service because we cant just be restarting every commit, so we could actually plan every commit before restarting.

Solved$10 Bounty

15 Replies

cicerorph
HOBBYOP

a year ago

N/A


a year ago

The most effective way to achieve this would be to commit to another branch instead of main, then PR to main when you believe your code is actually ready to deploy.


cicerorph
HOBBYOP

a year ago

well, we kinda already have the dev branch, but it would be better if there was a way to not make it restart every commit :P


cicerorph
HOBBYOP

a year ago

anyways, thanks for the reply.


a year ago

The only way that's possible right now is by removing the source repo from the service, then using the CLI to update the service instead of relying on automatic deployments


cicerorph
HOBBYOP

a year ago

hm


geodox
HOBBY

a year ago

Perhaps you may want a staging branch. This would be the step between dev and production.


cicerorph
HOBBYOP

a year ago

How may I set up that?


geodox
HOBBY

a year ago

Create a new branch in your git repo, then point railway to that branch in the service settings


geodox
HOBBY

a year ago

When you want to update what railway sees, merge dev branch into the new staging branch


a year ago

^ that’s exactly what I suggested up here


a year ago

one step removed, though


a year ago

I suggested dev -> main, if you find benefits in dev -> staging-> main, you might find pull request environments useful



a year ago

!s


Status changed to Solved adam 12 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...