railway connect Postgres prompting for password

I love being able to use railway run to automatically populate the DATABASE_URL in my development and I was expecting railway connect Postgres to function similarly by setting PGPASSWORD so I wouldn't need to pull down the password and could get to psql quickly, however, it is prompting me for my password. Is this expected? Is there another workflow I can use other than loading in PGPASSWORD manually?
Solution:
I love being able to use railway run to automatically populate the DATABASE_URL in my development and I was expecting railway connect Postgres to function similarly by setting PGPASSWORD so I wouldn't need to pull down the password and could get to psql quickly, however, it is prompting me for my password. Is this expected? Is there another workflow I can use other than loading in PGPASSWORD manually?
Jump to solution
7 Replies
Percy
Percy2y ago
Project ID: f4bcacee-751f-44ff-8b88-90f1c3c6ea5e
trevornederlof
trevornederlofOP2y ago
f4bcacee-751f-44ff-8b88-90f1c3c6ea5e
Brody
Brody2y ago
just had a look at the cli code for connect, and it indeed does not set the password when connecting to postgre, but it does for the other database types. I will see what can be done about this, great catch!!
trevornederlof
trevornederlofOP2y ago
Ah great thank you for checking!
Brody
Brody2y ago
i have submitted a pr to fix this issue https://github.com/railwayapp/cli/pull/427
trevornederlof
trevornederlofOP2y ago
Thank you @Brody !
Brody
Brody2y ago
no problem, im not sure when it will be released though so keep an eye out for that
Want results from more Discord servers?
Add your server