Deploy problem for connect postgres with Prisma in NestJS.
Project Id: 41a0502e-3568-4da7-96db-3ed7adcd4ffc
19 Replies
Project ID:
41a0502e-3568-4da7-96db-3ed7adcd4ffc
can you show me how you are using that variable in your code or configs?
in the code and and I'm putting the environment variable in the .env
please don't use a .env file, it should be in your .gitignore
can you connect to the database with something like pgadmin?
Ok
ok i will try
let me know how that goes
make sure you delete the .env file from your repo, I can see that the logs say variables where read from the .env file, anything in the .env will overwrite the variables injected by railway
ok right I deleted it but the connection error continues
?
are you aware that you just sent your database credentials in a public form?
sorry i never connected postgres before
please read the documentation for pgadmin
The connection attempt failed.
try restarting your database, the restart button is in the plugins settings
it gave an error, but run the database and already populate the tables but still off
can you show me the table at the top of the build logs please
alright so migrations ran, now I think you need this docs page
https://docs.railway.app/troubleshoot/fixing-common-errors
its work
thanks u
no problem