Fix "ERR! error: password authentication failed for user "vagrant""
This commit is contained in:
parent
590dfc97e1
commit
70c29c6cbd
|
@ -1,2 +1,3 @@
|
||||||
VAGRANT=true
|
VAGRANT=true
|
||||||
LOCAL_DOMAIN=gabsocial.local
|
LOCAL_DOMAIN=gabsocial.local
|
||||||
|
DB_HOST=/var/run/postgresql/
|
||||||
|
|
|
@ -5,6 +5,13 @@ default: &default
|
||||||
encoding: unicode
|
encoding: unicode
|
||||||
sslmode: <%= ENV['DB_SSLMODE'] || "prefer" %>
|
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:
|
development:
|
||||||
<<: *default
|
<<: *default
|
||||||
adapter: postgresql_makara
|
adapter: postgresql_makara
|
||||||
|
@ -14,10 +21,10 @@ development:
|
||||||
sticky: true
|
sticky: true
|
||||||
connections:
|
connections:
|
||||||
- role: master
|
- role: master
|
||||||
|
<<: *dev_connection
|
||||||
blacklist_duration: 0
|
blacklist_duration: 0
|
||||||
url: postgresql://<%= ENV['DB_USER']%>:<%= ENV['DB_PASS'] %>@<%= ENV['DB_HOST'] %>:<%= ENV['DB_PORT'] %>/<%= ENV['DB_NAME'] || 'gabsocial_development' %>
|
|
||||||
- role: slave
|
- 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' %>
|
# database: <%= ENV['DB_NAME'] || 'gabsocial_development' %>
|
||||||
# username: <%= ENV['DB_USER'] %>
|
# username: <%= ENV['DB_USER'] %>
|
||||||
|
|
Loading…
Reference in New Issue