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

8 months 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

8 months ago

N/A


8 months 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

8 months 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

8 months ago

anyways, thanks for the reply.


8 months 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

8 months ago

hm


geodox
HOBBY

8 months ago

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


cicerorph
HOBBYOP

8 months ago

How may I set up that?


geodox
HOBBY

8 months ago

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


geodox
HOBBY

8 months ago

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


8 months ago

^ that’s exactly what I suggested up here


8 months ago

one step removed, though


8 months ago

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



7 months ago

!s


Status changed to Solved adam 8 months ago


Loading...