diff options
Diffstat (limited to 'config/environment.rb')
-rw-r--r-- | config/environment.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config/environment.rb b/config/environment.rb index 548db1b72..ad696e2b9 100644 --- a/config/environment.rb +++ b/config/environment.rb @@ -82,4 +82,7 @@ ActionView::Helpers::TagHelper.module_eval do end end +# Domain for URLs (so can work for scripts, not just web pages) +ActionController::UrlWriter.default_url_options[:host] = MySociety::Config.get("DOMAIN", 'localhost:3000') + |