allcentury
HOBBYOP
a year ago
Wondering if this is a bug.
I've got a rails app deployed and it's using DATABASE_URL and it all works (migrations, jobs, etc).
If I then use:
railway run bashI look at
printenvAnd I see DATABASE_URL set to the internal value. However if I run
rails c
User.countit times out and can't reach postgres.
If instead, I run:
DATABASE_URL= rails c
User.countit works. So i'm wondering why railway run isn't in the private network?
3 Replies
a year ago
please know that railway run, runs the commands locally