25 days ago
How can I use separate environment variables for per-PR deployment branches without relying on the production branch as a base? One option is creating a staging branch to utilize its environment secrets, but deploying to staging feels wasteful. Ideally, I prefer maintaining a single production branch alongside per-PR branches. However, disconnecting the staging branch from GitHub causes deployment failures for per-PR branches.
5 Replies
25 days ago
https://docs.railway.com/guides/environments
https://docs.railway.com/guides/public-api#graphiql-playground
You can create different environments for PRs.
You can also use the Public API to create environments and set its variables for different PRs (via Github Actions).
25 days ago
You can either use Railway’s CLI (just install Railway CLI and run the shell commands) or you can use curl to call Railway’s GQL endpoint.
25 days ago
np
Status changed to Solved samgordon • 25 days ago