Fix "ERR! error: password authentication failed for user "vagrant""

This commit is contained in:
rubic0n 2021-01-10 23:17:12 -06:00
parent 590dfc97e1
commit 70c29c6cbd
2 changed files with 10 additions and 2 deletions

View File

@ -1,2 +1,3 @@
VAGRANT=true
LOCAL_DOMAIN=gabsocial.local
DB_HOST=/var/run/postgresql/

View File

@ -5,6 +5,13 @@ default: &default
encoding: unicode
sslmode: <%= ENV['DB_SSLMODE'] || "prefer" %>
dev_connection: &dev_connection
database: <%= ENV['DB_NAME'] || 'gabsocial_development' %>
username: <%= ENV['DB_USER'] %>
password: <%= ENV['DB_PASS'] %>
host: <%= ENV['DB_HOST'] %>
port: <%= ENV['DB_PORT'] %>
development:
<<: *default
adapter: postgresql_makara
@ -14,10 +21,10 @@ development:
sticky: true
connections:
- role: master
<<: *dev_connection
blacklist_duration: 0
url: postgresql://<%= ENV['DB_USER']%>:<%= ENV['DB_PASS'] %>@<%= ENV['DB_HOST'] %>:<%= ENV['DB_PORT'] %>/<%= ENV['DB_NAME'] || 'gabsocial_development' %>
- role: slave
url: postgresql://<%= ENV['DB_USER']%>:<%= ENV['DB_PASS'] %>@<%= ENV['DB_HOST'] %>:<%= ENV['DB_PORT'] %>/<%= ENV['DB_NAME'] || 'gabsocial_development' %>
<<: *dev_connection
# database: <%= ENV['DB_NAME'] || 'gabsocial_development' %>
# username: <%= ENV['DB_USER'] %>