a month ago
Hi Railway team,
I'm experiencing an issue where custom service variables are not being injected into the runtime environment.
Details:
• Fresh minimal Flask app, fresh Railway project
• Service variables set directly in the service UI (TEST_VALUE, ZZZ_TEST, GROQ_API_KEY)
• Deploy succeeds, app is running
• Railway system variables arrive correctly (RAILWAY_ENVIRONMENT, RAILWAY_SERVICE_NAME etc.)
• But all custom variables return null at runtime via os.environ.get()
Proof via /health endpoint:
{"test_value": null, "zzz_test": null}
IDs:
• Project ID: 644d8ec3-15f7-4571-b474-3368d05db2ce
• Service ID: 138ee618-2645-4665-a82c-b8d5a293bba4
• Environment ID: 8dde830f-ca92-4196-a819-988f0147793d
• Domain: minimalapp-production.up.railway.app
Is there a known issue with custom variable injection in this environment?
Best regards GH
{"test_value":null,"zzz_test":null}
1 Replies
a month ago
You haven't applied the changes after adding the variables.