asset pipeline - heroku explain environments/production.rb -


i have staging environment application. wanted enable assets precompilation, there no clear way me this. ended copying on many lines in environments/production.rb file environments/staging.rb

current staging.rb

dezzmo0003::application.configure   # settings specified here take precedence on in config/application.rb.    # in development environment application's code reloaded on   # every request. slows down response time perfect development   # since don't have restart web server when make code changes.   config.cache_classes = false    # not eager load code on boot.   config.eager_load = false    # show full error reports , disable caching.   config.consider_all_requests_local       = true   config.action_controller.perform_caching = false    # don't care if mailer can't send.   config.action_mailer.raise_delivery_errors = false    # settings assets compiled on staging   config.serve_static_assets = false   config.assets.js_compressor = :uglifier   config.assets.css_compressor = :sass   config.assets.compile = false   config.assets.digest = true   config.assets.version = '1.0'   config.log_level = :info   config.assets.precompile += %w( landing.js pages.js users.js )   config.i18n.fallbacks = true   config.active_support.deprecation = :notify   config.log_formatter = ::logger::formatter.new    # print deprecation notices rails logger.   config.active_support.deprecation = :log    # raise error on page load if there pending migrations   config.active_record.migration_error = :page_load    # debug mode disables concatenation , preprocessing of assets.   # option may cause significant delays in view rendering large   # number of complex assets.   config.assets.debug = true   config.action_mailer.default_url_options = { :host => 'localhost:3000' } end 

my question is. can these features , understand do?

the best place majority of config settings rails app official rails configuration guide. give of available config settings in document , do.

if there's 1 don't find in doc in config file, i'd suggest googling configuration variable (e.g. google: config.assets.debug) , see people it.


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -