-
|
I've built a tiny api server using rocket and sqlx, with a postgres backend. This is my first It works on my development laptop, but when deployed to my server on docker swarm, I get the following error: This is what let pool = sqlx::PgPool::connect(&pg_url)
.await
.expect(&format!("Failed to connect to db with url: {}", pg_url).to_string());The hostname I've seen the same error with What am I missing? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
Just in case it helps someone else, the error was that I included double quotes in my I realise this is not really a |
Beta Was this translation helpful? Give feedback.
Just in case it helps someone else, the error was that I included double quotes in my
docker-composefile around the url. SoI realise this is not really a
sqlxproblem, sorry about the noise.