OSDN Git Service

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