OSDN Git Service

7d4ebc26622589bbfb3480e728cdac17e00cdd11
[pettanr/pettanr.git] / config / environments / production.rb
1 Pettanr::Application.configure do
2   # Settings specified here will take precedence over those in config/application.rb
3 config.assets.precompile += %w( *.css *.js )
4
5   # Code is not reloaded between requests
6   config.cache_classes = true
7
8   # Full error reports are disabled and caching is turned on
9   config.consider_all_requests_local       = false
10   config.action_controller.perform_caching = true
11
12   # Disable Rails's static asset server (Apache or nginx will already do this)
13
14 # assets files can't find at production mode
15 # http://blog.livedoor.jp/maru_tak/archives/51247889.html
16 #config.serve_static_assets = false
17
18   # Compress JavaScripts and CSS
19   config.assets.compress = true
20
21   # Don't fallback to assets pipeline if a precompiled asset is missed
22   config.assets.compile = false
23
24   # Generate digests for assets URLs
25   config.assets.digest = true
26
27   # Defaults to Rails.root.join("public/assets")
28   # config.assets.manifest = YOUR_PATH
29
30   # Specifies the header that your server uses for sending files
31   # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
32   # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
33
34   # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
35   # config.force_ssl = true
36
37   # See everything in the log (default is :info)
38   # config.log_level = :debug
39
40   # Use a different logger for distributed setups
41   # config.logger = SyslogLogger.new
42
43   # Use a different cache store in production
44   # config.cache_store = :mem_cache_store
45
46   # Enable serving of images, stylesheets, and JavaScripts from an asset server
47   # config.action_controller.asset_host = "http://assets.example.com"
48
49   # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added)
50   # config.assets.precompile += %w( search.js )
51
52   # Disable delivery errors, bad email addresses will be ignored
53   # config.action_mailer.raise_delivery_errors = false
54
55   # Enable threaded mode
56   # config.threadsafe!
57
58   # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
59   # the I18n.default_locale when a translation can not be found)
60   config.i18n.fallbacks = true
61
62   # Send deprecation notices to registered listeners
63   config.active_support.deprecation = :notify
64 config.eager_load = true
65 config.active_record.migration_error = :page_load
66 end