diff options
author | Harald Eilertsen <haraldei@anduin.net> | 2014-07-06 11:20:46 +0200 |
---|---|---|
committer | Harald Eilertsen <haraldei@anduin.net> | 2014-07-06 11:20:46 +0200 |
commit | efa3b9168d147f663ac050668a399646e4f883f3 (patch) | |
tree | f44b160836303c020184ded1383c784a32dbe8ab | |
parent | 6ca822b124900d06b3b29663d558b87b6aa76b3c (diff) | |
download | hmnoweb-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.
-rw-r--r-- | config/deploy/templates/postgresql.yml.erb | 7 |
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 %>' |