You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If postgres is running via a UNIX domain socket instead of binding to a tcp port Avram::Migrator::Runner.create_db fails with the error:
createdb: could not connect to database template1: could not translate host name "-p" to address: Name or service not known
The DATABASE_URL in this case looks something like this: postgres://wmoore@/read_rust_development, as per the PostgreSQL docs.
The default behavior when host is not specified is to connect to a Unix-domain socket in /tmp (or whatever socket directory was specified when PostgreSQL was built).
The text was updated successfully, but these errors were encountered:
If postgres is running via a UNIX domain socket instead of binding to a tcp port
Avram::Migrator::Runner.create_db
fails with the error:The
DATABASE_URL
in this case looks something like this:postgres://wmoore@/read_rust_development
, as per the PostgreSQL docs.The text was updated successfully, but these errors were encountered: