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.
15 Replies
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.
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
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
Perhaps you may want a staging branch. This would be the step between dev and production.
Create a new branch in your git repo, then point railway to that branch in the service settings
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