Skip to content

Instantly share code, notes, and snippets.

@morenoh149
Created February 6, 2014 20:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save morenoh149/8851790 to your computer and use it in GitHub Desktop.
Save morenoh149/8851790 to your computer and use it in GitHub Desktop.
0003::Application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# In the development environment your application's code is reloaded on
# every request. This slows down response time but is perfect for development
# since you don't have to restart the web server when you make code changes.
config.cache_classes = true
# Do not eager load code on boot.
config.eager_load = false
# Show full error reports and disable caching.
config.consider_all_requests_local = true
config.action_controller.perform_caching = true
# Don't care if the mailer can't send.
config.action_mailer.raise_delivery_errors = false
# my settings to get assets compiled on staging
#config.serve_static_assets = true // not needed with 12factor gem
config.static_cache_control = "public, max-age=31536000"
config.assets.js_compressor = :uglifier
config.assets.css_compressor = :sass
config.assets.compress = true
config.assets.compile = true
config.assets.digest = false
#config.assets.version = '1.0'
config.log_level = :debug
#config.assets.precompile += %w( landing.js users.js )
config.i18n.fallbacks = true
config.active_support.deprecation = :notify
# Print deprecation notices to the Rails logger.
config.active_support.deprecation = :log
# Raise an error on page load if there are pending migrations
config.active_record.migration_error = :page_load
# Debug mode disables concatenation and preprocessing of assets.
# This option may cause significant delays in view rendering with a large
# number of complex assets.
config.assets.debug = false # conflicts with all the settings above for compiling and compressing js/css
config.action_mailer.default_url_options = { :host => 'localhost:3000' }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment