a year ago
Hi,
I've deployed a Net 6.0 Core Web API to Railway.
It's working but it's unable to see environment variables, they are always showing as null.
I super simplified the names and the way I'm accessing them, but I still never see them. I've redeployed and restarted the container? Any ideas? I did search help but couldn't find anything.
Here's the code that's trying to read the variables.
var sqlConnection = Environment.GetEnvironmentVariable("OverlookDB");
var mailAccount = Environment.GetEnvironmentVariable("OverlookMailAccount");
var mailPassword = Environment.GetEnvironmentVariable("OverlookMailPassword");
3 Replies
Status changed to Awaiting User Response Railway • about 1 year ago
a year ago
Ugh, I'm very sorry to bother you. I just started on Railway yesterday, I didn't even notice that.
I suspect we'll be all good.
Thank you
Status changed to Awaiting Railway Response Railway • about 1 year ago
Status changed to Awaiting User Response Railway • about 1 year ago
Status changed to Solved brody • about 1 year ago