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:Jump to 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?7 Replies
Project ID:
f4bcacee-751f-44ff-8b88-90f1c3c6ea5e
f4bcacee-751f-44ff-8b88-90f1c3c6ea5e
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!!
Ah great thank you for checking!
i have submitted a pr to fix this issue
https://github.com/railwayapp/cli/pull/427
Thank you @Brody !
no problem, im not sure when it will be released though so keep an eye out for that