R
Railway4mo ago
tj

dev vs prod instance tracking different branches?

how would I create another railway instance from the same repo, but listening to a different branch? (eg stable, that main merges into occassionally)
Solution:
you would want to add another environment to your project https://docs.railway.app/reference/environments https://docs.railway.app/guides/environments you would then set the same service in your dev environment up to deploy from the desired dev branch of your repo...
Jump to solution
4 Replies
Percy
Percy4mo ago
Project ID: 114fa538-776d-4163-b35a-d202c7fa380d
Solution
Brody
Brody4mo ago
you would want to add another environment to your project https://docs.railway.app/reference/environments https://docs.railway.app/guides/environments you would then set the same service in your dev environment up to deploy from the desired dev branch of your repo
tj
tj4mo ago
curious, how does creating environments affect pricing? (pro plan)
Brody
Brody4mo ago
well it's essentially running everything in prod duplicated, so I would say a bit under double, since your dev environment isn't typically going to use the same amount of resources as the services in production environment would use. but you can always enable app sleeping on the services and databases in the dev environment, sleeping services don't use any cpu/mem. https://docs.railway.app/reference/app-sleeping https://docs.railway.app/guides/optimize-usage#enabling-app-sleeping
Want results from more Discord servers?
Add your server
More Posts