From c2d546522c2289207a976b01818a0ef56892a0e0 Mon Sep 17 00:00:00 2001 From: Vokhmin Alexey V Date: Thu, 3 Mar 2016 00:35:45 +0300 Subject: [PATCH] Allow to use other asset_host --- config/environments/production.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config/environments/production.rb b/config/environments/production.rb index 01f143948..eea460257 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -56,6 +56,8 @@ # Enable serving of images, stylesheets, and JavaScripts from an asset server. # config.action_controller.asset_host = "http://assets.example.com" + config.asset_host = ENV['ASSET_HOST_URL'] + config.action_mailer.asset_host = ENV['ASSET_HOST_URL'] # Ignore bad email addresses and do not raise email delivery errors. # Set this to true and configure the email server for immediate delivery to raise delivery errors.