From fef260cab594deb91922affde4d9ca5d592123d5 Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Fri, 2 May 2014 15:02:37 -0400 Subject: [PATCH] assets in prod --- app/views/campaigns/_videolisting_fields.html.erb | 1 + config/environments/production.rb | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/views/campaigns/_videolisting_fields.html.erb b/app/views/campaigns/_videolisting_fields.html.erb index 3119c78..4e09cf5 100644 --- a/app/views/campaigns/_videolisting_fields.html.erb +++ b/app/views/campaigns/_videolisting_fields.html.erb @@ -19,6 +19,7 @@ label: 'Production Notes', as: 'text', hint: "Notes and/or instructions sent in this field are used by the editors to aid in production of the video." %> + <%= videolisting.asseturls %> <%= f.input :asseturls, label: 'Asset Urls', as: 'string', diff --git a/config/environments/production.rb b/config/environments/production.rb index c98c60c..91febee 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -21,7 +21,7 @@ Vidpush::Application.configure do # config.action_dispatch.rack_cache = true # Disable Rails's static asset server (Apache or nginx will already do this). - config.serve_static_assets = false + config.serve_static_assets = true # Enable deflate / gzip compression of controller-generated responses config.middleware.use Rack::Deflater @@ -31,7 +31,7 @@ Vidpush::Application.configure do # config.assets.css_compressor = :sass # Do not fallback to assets pipeline if a precompiled asset is missed. - config.assets.compile = false + config.assets.compile = true # Generate digests for assets URLs. config.assets.digest = true @@ -87,5 +87,5 @@ Vidpush::Application.configure do # Use default logging formatter so that PID and timestamp are not suppressed. config.log_formatter = ::Logger::Formatter.new - config.action_mailer.default_url_options = { host: 'vidpush.com' } + config.action_mailer.default_url_options = { host: 'propel-vidpush-staging.heroku.com' } end