SwiftOne
SwiftOne
RRailway
Created by SwiftOne on 8/30/2024 in #✋|help
Can't run service with CLI and connect to Postgres service
11 replies
RRailway
Created by SwiftOne on 8/30/2024 in #✋|help
Can't run service with CLI and connect to Postgres service
Yes, you said that. My question was how. I don't see how railway shell is useful then. The guides I found for plugins (pre service, I guess?) such as your own blog post suggested I could connect to Postgres without having to write new conditional code.
11 replies
RRailway
Created by SwiftOne on 8/30/2024 in #✋|help
Can't run service with CLI and connect to Postgres service
Do I need to add conditional code to check for that? I thought the idea of the variables is that they'd reflect the necessary values.
11 replies
RRailway
Created by SwiftOne on 8/30/2024 in #✋|help
Can't run service with CLI and connect to Postgres service
And still says the internal address (I'm unclear if that's the expected value)
11 replies
RRailway
Created by SwiftOne on 8/30/2024 in #✋|help
Can't run service with CLI and connect to Postgres service
Running railway shell tells me I'm in a subshell, and npm start starts my express server locally, but it dies with the exact same ENOTFOUND message trying to connect to the Postgres service.
11 replies
RRailway
Created by SwiftOne on 8/30/2024 in #✋|help
Can't run service with CLI and connect to Postgres service
From skimming other answers, this appears to be working as intended (local deploys will have to connect using public addresses), but I'm unclear how to have my code use variables but have different values for those variables when running using "railway run"
11 replies