foreman/config/environments/development.rb @ d7c67746
017e1049 | Ohad Levy | Foreman::Application.configure do
|
|
418e709d | Ohad Levy | # Settings specified here will take precedence over those in config/application.rb.
|
|
5563217a | Ohad Levy | ||
017e1049 | Ohad Levy | # In the development environment your application's code is reloaded on
|
|
418e709d | Ohad Levy | # 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.
|
|||
017e1049 | Ohad Levy | config.cache_classes = false
|
|
5563217a | Ohad Levy | ||
418e709d | Ohad Levy | # Do not eager load code on boot.
|
|
480b571c | Daniel Lobato | config.eager_load = false
|
|
5563217a | Ohad Levy | ||
418e709d | Ohad Levy | # Show full error reports and disable caching.
|
|
017e1049 | Ohad Levy | config.consider_all_requests_local = true
|
|
config.action_controller.perform_caching = false
|
|||
418e709d | Ohad Levy | # Don't care if the mailer can't send.
|
|
017e1049 | Ohad Levy | config.action_mailer.raise_delivery_errors = false
|
|
418e709d | Ohad Levy | # Print deprecation notices to the Rails logger.
|
|
017e1049 | Ohad Levy | config.active_support.deprecation = :log
|
|
418e709d | Ohad Levy | # Raise an error on page load if there are pending migrations.
|
|
config.active_record.migration_error = :page_load
|
|||
017e1049 | Ohad Levy | # Only use best-standards-support built into browsers
|
|
config.action_dispatch.best_standards_support = :builtin
|
|||
d076d573 | Joseph Mitchell Magen | ||
0ecc13d3 | Ori Rabin | # Should ANSI color codes be used when logging information
|
|
3088e641 | Eric D. Helms | config.colorize_logging = Foreman::Logging.config[:colorize]
|
|
0ecc13d3 | Ori Rabin | ||
418e709d | Ohad Levy | # Debug mode disables concatenation and preprocessing of assets.
|
|
# This option may cause significant delays in view rendering with a large
|
|||
# number of complex assets.
|
|||
97c21c89 | Andrew Kofink | config.assets.debug = SETTINGS.fetch(:assets_debug, true)
|
|
feacea35 | Amos Benari | ||
418e709d | Ohad Levy | # Adds additional error checking when serving assets at runtime.
|
|
# Checks for improperly declared sprockets dependencies.
|
|||
# Raises helpful error messages.
|
|||
config.assets.raise_runtime_errors = true
|
|||
12612809 | Dominic Cleal | # Raise exception on mass assignment of unfiltered parameters
|
|
config.action_controller.action_on_unpermitted_parameters = :strict
|
|||
feacea35 | Amos Benari | ||
d7c67746 | Michael Moll | if defined?(Bullet)
|
|
config.after_initialize do
|
|||
Bullet.enable = true
|
|||
Bullet.bullet_logger = true
|
|||
Bullet.console = true
|
|||
Bullet.rails_logger = true
|
|||
Bullet.add_footer = true
|
|||
Bullet.counter_cache_enable = false
|
|||
Bullet.add_whitelist :type => :n_plus_one_query, :class_name => "Puppetclass", :association => :environments
|
|||
Bullet.add_whitelist :type => :n_plus_one_query, :class_name => "Puppetclass", :association => :class_params
|
|||
end
|
|||
end
|
|||
31bbcd81 | Tomer Brisker | ||
68388bc2 | Michael Moll | # Allow disabling the webpack dev server from the settings
|
|
31bbcd81 | Tomer Brisker | config.webpack.dev_server.enabled = SETTINGS.fetch(:webpack_dev_server, true)
|
|
ab5c7c28 | Marek Hulan | config.webpack.dev_server.https = SETTINGS.fetch(:webpack_dev_server_https, false)
|
|
017e1049 | Ohad Levy | end
|