Fresh Phoenix / Postgres project. DBConncetionError. Works fine on Render?
Hello, I'm trying out Railway after nearly two years to see what it's like. I'm seeing an error trying to run my brand new Phoenix project.
This same Dockerfile works fine on Render. Any ideas why this is happening? Project id is:
429a2255-e11f-4860-acd2-0d61fae16250
13 Replies
Project ID:
429a2255-e11f-4860-acd2-0d61fae16250
are you getting these errors duing build?
share your dockerfile please
Errors after "Build Logs" and is seen in "Deploy Logs"
are you getting these errors during build or during runtime
build time seems like
please confirm that with utmost certainty
yes runtime, the error logs come from my app name
are you getting these errors during build or during runtime
??
please provide a clear and concise answer
Here's how I fixed it:
Make sure ipv6 is enabled for Ecto by setting the environment variable
ECTO_IPV6
to true
.
Add the DATABASE_PRIVATE_URL
from Postgres service to the app service on Railway.
Now it works.
I wonder how this gets shared for anyone else that might see this problem. I wish we had a proper forum for indexability in search engines