9 months ago
I am getting errors why trying to connect to neon postgres db from railway it works perfectly in local though. I am providing the logs as an attachment to this post.My project id is eda4e600-d3ed-4224-bb9b-127162c8c0c9
0 Replies
9 months ago
are you using environment variables? and do you have the needed variables set?
9 months ago
maybe not, can you show me a screenshot of your variables tab? keep the variables hidden
9 months ago
looks good, show me how you are consuming them in code
9 months ago
its not.
9 months ago
please use environment variables
9 months ago
let me know when you have used environment variables
I think this is a bug railway is not reading the postgres db environment variables correctly
9 months ago
i'm sorry but that would be incorrect
The moment I am trying to use any environment variables in there ,i am facing bunch of connection errors.without them the application is running fine
9 months ago
can i see this change in your code?
9 months ago
i dont know what this config thing is, please use env vars, use them for all variables