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 Dec 21, 2009
1 <%= app_const %>.configure do
787cac1 @fxn uniformizes the punctuation of comments in some files generated for n…
fxn authored Jan 22, 2012
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 Dec 21, 2009
3
787cac1 @fxn uniformizes the punctuation of comments in some files generated for n…
fxn authored Jan 21, 2012
4 # Code is not reloaded between requests.
b0b4ae9 test.rb, dev.rb, and production.rb just reopen the Application class;…
Carlhuda authored Dec 22, 2009
5 config.cache_classes = true
6
787cac1 @fxn uniformizes the punctuation of comments in some files generated for n…
fxn authored Jan 21, 2012
7 # Full error reports are disabled and caching is turned on.
ec4b18e @josevalim Get rid of deprecation warnings on config/environments/*
josevalim authored Feb 2, 2010
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 Dec 22, 2009
10
787cac1 @fxn uniformizes the punctuation of comments in some files generated for n…
fxn authored Jan 21, 2012
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 Mar 27, 2011
12 config.serve_static_assets = false
56a86c2 @wycats Make X-Sendfile default to "" so it works correctly in dev mode.
wycats authored Mar 26, 2010
13
ea5a70a @guilleiguaran Skip assets options in environments files when --skip-sprockets is used
guilleiguaran authored Dec 11, 2011
14 <%- unless options.skip_sprockets? -%>
787cac1 @fxn uniformizes the punctuation of comments in some files generated for n…
fxn authored Jan 21, 2012
15 # Compress JavaScripts and CSS.
88cb890 Change compressor API so that plugins can register default compressor…
tomhuda authored May 23, 2011
16 config.assets.compress = true
17
787cac1 @fxn uniformizes the punctuation of comments in some files generated for n…
fxn authored Jan 21, 2012
18 # Don't fallback to assets pipeline if a precompiled asset is missed.
f236e00 @guilleiguaran Backport f443f9c to master
guilleiguaran authored Aug 31, 2011
19 config.assets.compile = false
20
787cac1 @fxn uniformizes the punctuation of comments in some files generated for n…
fxn authored Jan 21, 2012
21 # Generate digests for assets URLs.
f236e00 @guilleiguaran Backport f443f9c to master
guilleiguaran authored Aug 31, 2011
22 config.assets.digest = true
23
77fedae @andhapp Changed the config.assets.manifest to nil in the comments in the prod…
andhapp authored Mar 28, 2012
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 Aug 30, 2011
25 # config.assets.manifest = YOUR_PATH
ea5a70a @guilleiguaran Skip assets options in environments files when --skip-sprockets is used
guilleiguaran authored Dec 11, 2011
26 <%- end -%>
d0b3937 @guilleiguaran Set default location of manifest with config.assets.manifest
guilleiguaran authored Aug 30, 2011
27
787cac1 @fxn uniformizes the punctuation of comments in some files generated for n…
fxn authored Jan 21, 2012
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 Aug 7, 2011
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 Apr 27, 2011
31
2c0c4d7 @sikachu Add `config.force_ssl` configuration which will load `Rack::SSL` midd…
sikachu authored Mar 27, 2011
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 Mar 26, 2010
34
21f6d72 @rosenfeld Make log_level explicit in production.rb template
rosenfeld authored Apr 16, 2012
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 Dec 22, 2009
37
787cac1 @fxn uniformizes the punctuation of comments in some files generated for n…
fxn authored Jan 21, 2012
38 # Prepend all log lines with the following tags.
be27bf1 @dhh Fix the proper production.rb
dhh authored Oct 19, 2011
39 # config.log_tags = [ :subdomain, :uuid ]
40
787cac1 @fxn uniformizes the punctuation of comments in some files generated for n…
fxn authored Jan 21, 2012
41 # Use a different logger for distributed setups.
be27bf1 @dhh Fix the proper production.rb
dhh authored Oct 19, 2011
42 # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
b0b4ae9 test.rb, dev.rb, and production.rb just reopen the Application class;…
Carlhuda authored Dec 22, 2009
43
787cac1 @fxn uniformizes the punctuation of comments in some files generated for n…
fxn authored Jan 21, 2012
44 # Use a different cache store in production.
b0b4ae9 test.rb, dev.rb, and production.rb just reopen the Application class;…
Carlhuda authored Dec 22, 2009
45 # config.cache_store = :mem_cache_store
46
787cac1 @fxn uniformizes the punctuation of comments in some files generated for n…
fxn authored Jan 21, 2012
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 Dec 22, 2009
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 Dec 11, 2011
50 <%- unless options.skip_sprockets? -%>
787cac1 @fxn uniformizes the punctuation of comments in some files generated for n…
fxn authored Jan 21, 2012
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 Apr 19, 2011
52 # config.assets.precompile += %w( search.js )
ea5a70a @guilleiguaran Skip assets options in environments files when --skip-sprockets is used
guilleiguaran authored Dec 11, 2011
53 <%- end -%>
9aac54c @dhh Add note about the option to add other precompile targets
dhh authored Apr 19, 2011
54
787cac1 @fxn uniformizes the punctuation of comments in some files generated for n…
fxn authored Jan 21, 2012
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 Dec 22, 2009
56 # config.action_mailer.raise_delivery_errors = false
57
787cac1 @fxn uniformizes the punctuation of comments in some files generated for n…
fxn authored Jan 21, 2012
58 # Enable threaded mode.
b0b4ae9 test.rb, dev.rb, and production.rb just reopen the Application class;…
Carlhuda authored Dec 22, 2009
59 # config.threadsafe!
9a3a4d6 @svenfuchs Make i18n fallbacks configurable and fallback to the default locale b…
svenfuchs authored Apr 16, 2010
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 Jan 21, 2012
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 Apr 16, 2010
63 config.i18n.fallbacks = true
d4c7d3f @wycats Create a deprecation behavior that triggers a notification for deprec…
wycats authored Jun 29, 2010
64
787cac1 @fxn uniformizes the punctuation of comments in some files generated for n…
fxn authored Jan 21, 2012
65 # Send deprecation notices to registered listeners.
0253bf4 @josevalim Change :notification to :notify (ht: m4n)
josevalim authored Jun 29, 2010
66 config.active_support.deprecation = :notify
0306f82 @fxn implements automatic EXPLAIN logging for slow queries
fxn authored Dec 2, 2011
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 Jan 21, 2012
70 # with SQLite, MySQL, and PostgreSQL).
0306f82 @fxn implements automatic EXPLAIN logging for slow queries
fxn authored Dec 2, 2011
71 # config.active_record.auto_explain_threshold_in_seconds = 0.5
72 <%- end -%>
7549a78 @felixbuenemann Move config.autoflush_log to correct template.
felixbuenemann authored Feb 23, 2012
73
74 # Disable automatic flushing of the log to improve performance.
fb9a919 @felixbuenemann Use consistent whitespace for commented options.
felixbuenemann authored Feb 23, 2012
75 # config.autoflush_log = false
51aeae9 @tenderlove allow people to specify custom formatters, use the default formatter …
tenderlove authored Mar 12, 2012
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 Apr 26, 2012
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 Apr 28, 2012
82 config.queue = Rails::Queueing::Queue
259f384 @josh Template whitespace
josh authored Jan 22, 2010
83 end
Something went wrong with that request. Please try again.