aboutsummaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2014-07-06 11:20:46 +0200
committerHarald Eilertsen <haraldei@anduin.net>2014-07-06 11:20:46 +0200
commitefa3b9168d147f663ac050668a399646e4f883f3 (patch)
treef44b160836303c020184ded1383c784a32dbe8ab /config
parent6ca822b124900d06b3b29663d558b87b6aa76b3c (diff)
downloadhmnoweb-efa3b9168d147f663ac050668a399646e4f883f3.tar.gz
hmnoweb-efa3b9168d147f663ac050668a399646e4f883f3.tar.bz2
hmnoweb-efa3b9168d147f663ac050668a399646e4f883f3.zip
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.
Diffstat (limited to 'config')
-rw-r--r--config/deploy/templates/postgresql.yml.erb7
1 files changed, 7 insertions, 0 deletions
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 %>'