annotate config/environments/production.rb @ 16:fff788625214

Add basic hgignore.
author edogawaconan <me@myconan.net>
date Fri, 05 Sep 2014 20:37:56 +0900
parents a1c9fadc0904
children a2f7dfc68f44
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
1 Rails.application.configure do
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
2 # Settings specified here will take precedence over those in config/application.rb.
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
3
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
4 # Code is not reloaded between requests.
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
5 config.cache_classes = true
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
6
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
7 # Eager load code on boot. This eager loads most of Rails and
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
8 # your application in memory, allowing both threaded web servers
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
9 # and those relying on copy on write to perform better.
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
10 # Rake tasks automatically ignore this option for performance.
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
11 config.eager_load = true
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
12
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
13 # Full error reports are disabled and caching is turned on.
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
14 config.consider_all_requests_local = false
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
15 config.action_controller.perform_caching = true
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
16
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
17 # Enable Rack::Cache to put a simple HTTP cache in front of your application
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
18 # Add `rack-cache` to your Gemfile before enabling this.
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
19 # For large-scale production use, consider using a caching reverse proxy like nginx, varnish or squid.
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
20 # config.action_dispatch.rack_cache = true
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
21
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
22 # Disable Rails's static asset server (Apache or nginx will already do this).
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
23 config.serve_static_assets = false
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
24
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
25
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
26 # Specifies the header that your server uses for sending files.
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
27 # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
28 # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
29
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
30 # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
31 # config.force_ssl = true
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
32
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
33 # Set to :debug to see everything in the log.
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
34 config.log_level = :info
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
35
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
36 # Prepend all log lines with the following tags.
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
37 # config.log_tags = [ :subdomain, :uuid ]
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
38
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
39 # Use a different logger for distributed setups.
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
40 # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
41
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
42 # Use a different cache store in production.
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
43 # config.cache_store = :mem_cache_store
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
44
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
45 # Enable serving of images, stylesheets, and JavaScripts from an asset server.
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
46 # config.action_controller.asset_host = "http://assets.example.com"
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
47
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
48
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
49 # Ignore bad email addresses and do not raise email delivery errors.
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
50 # Set this to true and configure the email server for immediate delivery to raise delivery errors.
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
51 # config.action_mailer.raise_delivery_errors = false
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
52
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
53 # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
54 # the I18n.default_locale when a translation cannot be found).
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
55 config.i18n.fallbacks = true
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
56
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
57 # Send deprecation notices to registered listeners.
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
58 config.active_support.deprecation = :notify
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
59
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
60 # Disable automatic flushing of the log to improve performance.
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
61 # config.autoflush_log = false
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
62
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
63 # Use default logging formatter so that PID and timestamp are not suppressed.
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
64 config.log_formatter = ::Logger::Formatter.new
a1c9fadc0904 Initial.
edogawaconan <me@myconan.net>
parents:
diff changeset
65 end