Skip to content
Newer
Older
100644 84 lines (60 sloc) 3 KB
d982fe2 Replace reopening the class with App.configure as an alias to class_eval
Carlhuda authored
1 <%= app_const %>.configure do
787cac1 @fxn uniformizes the punctuation of comments in some files generated for n…
fxn authored
2 # Settings specified here will take precedence over those in config/application.rb.
b0b4ae9 test.rb, dev.rb, and production.rb just reopen the Application class;…
Carlhuda authored
3
787cac1 @fxn uniformizes the punctuation of comments in some files generated for n…
fxn authored
4 # Code is not reloaded between requests.
b0b4ae9 test.rb, dev.rb, and production.rb just reopen the Application class;…
Carlhuda authored
5 config.cache_classes = true
6
787cac1 @fxn uniformizes the punctuation of comments in some files generated for n…
fxn authored
7 # Full error reports are disabled and caching is turned on.
ec4b18e @josevalim Get rid of deprecation warnings on config/environments/*
josevalim authored
8 config.consider_all_requests_local = false
9 config.action_controller.perform_caching = true
b0b4ae9 test.rb, dev.rb, and production.rb just reopen the Application class;…
Carlhuda authored
10
787cac1 @fxn uniformizes the punctuation of comments in some files generated for n…
fxn authored
11 # Disable Rails's static asset server (Apache or nginx will already do this).
2c0c4d7 @sikachu Add `config.force_ssl` configuration which will load `Rack::SSL` midd…
sikachu authored
12 config.serve_static_assets = false
56a86c2 @wycats Make X-Sendfile default to "" so it works correctly in dev mode.
wycats authored
13
ea5a70a @guilleiguaran Skip assets options in environments files when --skip-sprockets is used
guilleiguaran authored
14 <%- unless options.skip_sprockets? -%>
787cac1 @fxn uniformizes the punctuation of comments in some files generated for n…
fxn authored
15 # Compress JavaScripts and CSS.
88cb890 Change compressor API so that plugins can register default compressor…
tomhuda authored
16 config.assets.compress = true
17
787cac1 @fxn uniformizes the punctuation of comments in some files generated for n…
fxn authored
18 # Don't fallback to assets pipeline if a precompiled asset is missed.
f236e00 @guilleiguaran Backport f443f9c to master
guilleiguaran authored
19 config.assets.compile = false
20
787cac1 @fxn uniformizes the punctuation of comments in some files generated for n…
fxn authored
21 # Generate digests for assets URLs.
f236e00 @guilleiguaran Backport f443f9c to master
guilleiguaran authored
22 config.assets.digest = true
23
77fedae @andhapp Changed the config.assets.manifest to nil in the comments in the prod…
andhapp authored
24 # Defaults to nil and saved in location specified by config.assets.prefix
d0b3937 @guilleiguaran Set default location of manifest with config.assets.manifest
guilleiguaran authored
25 # config.assets.manifest = YOUR_PATH
ea5a70a @guilleiguaran Skip assets options in environments files when --skip-sprockets is used
guilleiguaran authored
26 <%- end -%>
d0b3937 @guilleiguaran Set default location of manifest with config.assets.manifest
guilleiguaran authored
27
787cac1 @fxn uniformizes the punctuation of comments in some files generated for n…
fxn authored
28 # Specifies the header that your server uses for sending files.
8845ae6 @spastorino x_sendfile_header now defaults to nil and production.rb env file doesn't
spastorino authored
29 # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
30 # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
e84788e @dhh Relevant options closer together
dhh authored
31
2c0c4d7 @sikachu Add `config.force_ssl` configuration which will load `Rack::SSL` midd…
sikachu authored
32 # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
33 # config.force_ssl = true
56a86c2 @wycats Make X-Sendfile default to "" so it works correctly in dev mode.
wycats authored
34
21f6d72 @rosenfeld Make log_level explicit in production.rb template
rosenfeld authored
35 # Set to :debug to see everything in the log.
36 config.log_level = :info
b0b4ae9 test.rb, dev.rb, and production.rb just reopen the Application class;…
Carlhuda authored
37
787cac1 @fxn uniformizes the punctuation of comments in some files generated for n…
fxn authored
38 # Prepend all log lines with the following tags.
be27bf1 @dhh Fix the proper production.rb
dhh authored
39 # config.log_tags = [ :subdomain, :uuid ]
40
787cac1 @fxn uniformizes the punctuation of comments in some files generated for n…
fxn authored
41 # Use a different logger for distributed setups.
be27bf1 @dhh Fix the proper production.rb
dhh authored
42 # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
b0b4ae9 test.rb, dev.rb, and production.rb just reopen the Application class;…
Carlhuda authored
43
787cac1 @fxn uniformizes the punctuation of comments in some files generated for n…
fxn authored
44 # Use a different cache store in production.
b0b4ae9 test.rb, dev.rb, and production.rb just reopen the Application class;…
Carlhuda authored
45 # config.cache_store = :mem_cache_store
46
787cac1 @fxn uniformizes the punctuation of comments in some files generated for n…
fxn authored
47 # Enable serving of images, stylesheets, and JavaScripts from an asset server.
b0b4ae9 test.rb, dev.rb, and production.rb just reopen the Application class;…
Carlhuda authored
48 # config.action_controller.asset_host = "http://assets.example.com"
49
ea5a70a @guilleiguaran Skip assets options in environments files when --skip-sprockets is used
guilleiguaran authored
50 <%- unless options.skip_sprockets? -%>
787cac1 @fxn uniformizes the punctuation of comments in some files generated for n…
fxn authored
51 # Precompile additional assets (application.js, application.css, and all non-JS/CSS are already added).
9aac54c @dhh Add note about the option to add other precompile targets
dhh authored
52 # config.assets.precompile += %w( search.js )
ea5a70a @guilleiguaran Skip assets options in environments files when --skip-sprockets is used
guilleiguaran authored
53 <%- end -%>
9aac54c @dhh Add note about the option to add other precompile targets
dhh authored
54
787cac1 @fxn uniformizes the punctuation of comments in some files generated for n…
fxn authored
55 # Disable delivery errors, bad email addresses will be ignored.
b0b4ae9 test.rb, dev.rb, and production.rb just reopen the Application class;…
Carlhuda authored
56 # config.action_mailer.raise_delivery_errors = false
57
787cac1 @fxn uniformizes the punctuation of comments in some files generated for n…
fxn authored
58 # Enable threaded mode.
b0b4ae9 test.rb, dev.rb, and production.rb just reopen the Application class;…
Carlhuda authored
59 # config.threadsafe!
9a3a4d6 @svenfuchs Make i18n fallbacks configurable and fallback to the default locale b…
svenfuchs authored
60
61 # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
787cac1 @fxn uniformizes the punctuation of comments in some files generated for n…
fxn authored
62 # the I18n.default_locale when a translation can not be found).
9a3a4d6 @svenfuchs Make i18n fallbacks configurable and fallback to the default locale b…
svenfuchs authored
63 config.i18n.fallbacks = true
d4c7d3f @wycats Create a deprecation behavior that triggers a notification for deprec…
wycats authored
64
787cac1 @fxn uniformizes the punctuation of comments in some files generated for n…
fxn authored
65 # Send deprecation notices to registered listeners.
0253bf4 @josevalim Change :notification to :notify (ht: m4n)
josevalim authored
66 config.active_support.deprecation = :notify
0306f82 @fxn implements automatic EXPLAIN logging for slow queries
fxn authored
67
68 <%- unless options.skip_active_record? -%>
69 # Log the query plan for queries taking more than this (works
787cac1 @fxn uniformizes the punctuation of comments in some files generated for n…
fxn authored
70 # with SQLite, MySQL, and PostgreSQL).
0306f82 @fxn implements automatic EXPLAIN logging for slow queries
fxn authored
71 # config.active_record.auto_explain_threshold_in_seconds = 0.5
72 <%- end -%>
7549a78 @felixbuenemann Move config.autoflush_log to correct template.
felixbuenemann authored
73
74 # Disable automatic flushing of the log to improve performance.
fb9a919 @felixbuenemann Use consistent whitespace for commented options.
felixbuenemann authored
75 # config.autoflush_log = false
51aeae9 @tenderlove allow people to specify custom formatters, use the default formatter …
tenderlove authored
76
77 # Use default logging formatter so that PID and timestamp are not suppressed
78 config.log_formatter = ::Logger::Formatter.new
adff4a7 @wycats Initial queue implementation
wycats authored
79
80 # Default the production mode queue to an in-memory queue. You will probably
81 # want to replace this with an out-of-process queueing solution
9fc9e89 @josevalim Use Rails::Queueing::Queue instead of Queue so people can build their…
josevalim authored
82 config.queue = Rails::Queueing::Queue
259f384 @josh Template whitespace
josh authored
83 end
Something went wrong with that request. Please try again.