From efa3b9168d147f663ac050668a399646e4f883f3 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Sun, 6 Jul 2014 11:20:46 +0200 Subject: Customize database.yml template. We want to use unix domain sockets, not ip over localhost. For this we simply drop the host specification of the yml-file. --- config/deploy/templates/postgresql.yml.erb | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 config/deploy/templates/postgresql.yml.erb (limited to 'config') diff --git a/config/deploy/templates/postgresql.yml.erb b/config/deploy/templates/postgresql.yml.erb new file mode 100644 index 0000000..96a1b57 --- /dev/null +++ b/config/deploy/templates/postgresql.yml.erb @@ -0,0 +1,7 @@ +<%= fetch :stage %>: + adapter: postgresql + encoding: <%= fetch :pg_encoding %> + database: <%= fetch :pg_database %> + pool: <%= fetch :pg_pool %> + username: <%= fetch :pg_user %> + password: '<%= fetch :pg_password %>' -- cgit v1.2.3