Advertisement
Guest User

development.rb

a guest
Aug 24th, 2015
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.95 KB | None | 0 0
  1.  
  2. Rails.application.configure do
  3.   # Settings specified here will take precedence over those in config/application.rb.
  4.   $stdout.sync = true
  5.   # In the development environment your application's code is reloaded on
  6.   # every request. This slows down response time but is perfect for development
  7.   # since you don't have to restart the web server when you make code changes.
  8.   config.cache_classes = false
  9.  
  10.   # Do not eager load code on boot.
  11.   config.eager_load = false
  12.  
  13.   # Show full error reports and disable caching.
  14.   config.consider_all_requests_local       = true
  15.   config.action_controller.perform_caching = false
  16.    #cloudfront assets config fixing problem with heroku origin in cloudfront
  17.   config.action_controller.asset_host = ENV['APP_URL']
  18.  
  19.   # Don't care if the mailer can't send.
  20.   config.action_mailer.raise_delivery_errors = false
  21.  
  22.   #S3 config
  23.  
  24.   # Print deprecation notices to the Rails logger.
  25.   config.active_support.deprecation = :log
  26.  
  27.   #mailer
  28.   config.action_mailer.default_url_options = { :host => 'localhost:5000' }
  29.   config.action_mailer.delivery_method = :smtp
  30.   config.action_mailer.smtp_settings = {:address => "localhost", :port => 1025}
  31.  
  32.   # Raise an error on page load if there are pending migrations.
  33.   config.active_record.migration_error = :page_load
  34.  
  35.   # Debug mode disables concatenation and preprocessing of assets.
  36.   # This option may cause significant delays in view rendering with a large
  37.   # number of complex assets.
  38.   config.assets.debug = true
  39.  
  40.   # Adds additional error checking when serving assets at runtime.
  41.   # Checks for improperly declared sprockets dependencies.
  42.   # Raises helpful error messages.
  43.   config.assets.raise_runtime_errors = true
  44.  
  45.   #config.assets.paths << Rails.root.join('app', 'assets', 'fonts')
  46.   #config.assets.paths << Rails.root.join('app', 'assets', 'fonts')
  47.   # Raises error for missing translations
  48.   # config.action_view.raise_on_missing_translations = true
  49. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement