R
Railway2y ago
guypy

Service deployed with environment variables of another environment

I have two environments set up on my project, "production" and "staging". For each environment I have a set of shared environment variables. When I deploy my services on "production", they are deployed with the environment variables from "staging". Looking at the values in the project settings, it looks like they are set up correctly. Would appreciate any help on that issue, thanks!
6 Replies
Percy
Percy2y ago
Project ID: 4c244bec-c9dc-4d97-b44d-c09dcf0b97d3
Percy
Percy2y ago
You might find these helpful: - Environments | Railway Docs
⚠️ experimental feature
guypy
guypy2y ago
4c244bec-c9dc-4d97-b44d-c09dcf0b97d3
Adam
Adam2y ago
When environment variables are shared the values are shared as well if you want separate values then they shouldn’t be shared
guypy
guypy2y ago
The environment variables are shared across multiple services, so to my understanding they should be shared. Across environments (production/staging) I believe the values are separated. Turns out it was a caching issue caused by a Cloudflare proxy.
Adam
Adam2y ago
Gotcha, I see what you mean. Thought you meant that you’ve set them up to share across environments as well