heroku_and_production_mode_friendly

This commit is contained in:
Israel Ogbole
2016-07-08 00:39:52 +01:00
parent 1f5e20dd1a
commit e54acddc52
7 changed files with 117 additions and 20 deletions

View File

@@ -22,14 +22,20 @@ Rails.application.configure do
# Disable serving static files from the `/public` folder by default since
# Apache or NGINX already handles this.
config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present?
#config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present?
# change this to true to load images from the public folder in production for non-NGNIX setup, like PUMA
config.serve_static_files = true
# Compress JavaScripts and CSS.
# Compress JavaScripts and CSS.
config.assets.js_compressor = :uglifier
# config.assets.css_compressor = :sass
# Do not fallback to assets pipeline if a precompiled asset is missed.
config.assets.compile = false
#config.assets.compile = false
# feel free to change it back to false, but it had to be true to make glyphs work in my case.
# I am not really sure why that is at the moment
config.assets.compile = true
# Asset digests allow you to set far-future HTTP expiration dates on all assets,
# yet still be able to expire them through the digest params.