From 273643adfc89443427185e7cda01dca5702f0c17 Mon Sep 17 00:00:00 2001 From: Sam Date: Mon, 28 Oct 2013 10:31:23 +1100 Subject: [PATCH] allow passing in of hostname in sample file --- config/database.yml.production-sample | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/database.yml.production-sample b/config/database.yml.production-sample index f12389e929c..bb3e4d1b054 100644 --- a/config/database.yml.production-sample +++ b/config/database.yml.production-sample @@ -11,7 +11,7 @@ production: ### If you change this setting you will need to ### - restart sidekiq if you change this setting ### - rebake all to posts using: `RAILS_ENV=production bundle exec rake posts:rebake` - - production.localhost # Update this to be the domain of your production site + - <%= ENV["HOSTNAME"] || "production.localhost" %> # Update this to be the domain of your production site test: adapter: postgresql