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:Jump to 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...
4 Replies
Project ID:
114fa538-776d-4163-b35a-d202c7fa380d
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
curious, how does creating environments affect pricing? (pro plan)
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