forked from External/greenlight
minor fixes
This commit is contained in:
@ -16,14 +16,14 @@ Rails.application.configure do
|
||||
|
||||
# Disable serving static files from the `/public` folder by default since
|
||||
# Apache or NGINX already handles this.
|
||||
config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
|
||||
config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].blank?
|
||||
|
||||
# Compress JavaScripts and CSS.
|
||||
config.assets.js_compressor = Uglifier.new(harmony: true)
|
||||
# config.assets.css_compressor = :sass
|
||||
|
||||
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
||||
config.assets.compile = true
|
||||
config.assets.compile = false
|
||||
|
||||
# `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
|
||||
|
||||
@ -88,6 +88,6 @@ Rails.application.configure do
|
||||
if ENV['RELATIVE_URL_ROOT'].present?
|
||||
config.relative_url_root = ENV['RELATIVE_URL_ROOT']
|
||||
else
|
||||
config.relative_url_root = ""
|
||||
config.relative_url_root = "/"
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user