2 months ago
"Railway Runtime V2 is not injecting user-defined environment variables into my container. ANTHROPIC_API_KEY is set in service variables but never appears in os.environ at runtime. Railway's own system variables like RAILWAY_ENVIRONMENT do appear. How do I fix this?"
1 Replies
2 months ago
Your service "zeus-app" is currently in a FAILED state. We were unable to retrieve runtime logs, which suggests the deployment is not running. Service variables (including user-defined ones like ANTHROPIC_API_KEY) are injected at runtime and require a successful deployment to take effect. Adding or updating variables creates staged changes that must be deployed before they appear in your container. Please check your project canvas for any pending staged changes, and also check your build logs to determine why the deployment is failing.
Status changed to Awaiting User Response Railway • about 2 months ago
a month ago
This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!
Status changed to Solved Railway • about 1 month ago