Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 92 lines (68 sloc) 3.684 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
e6747d8 @josevalim Allow users to choose when to eager_load the application or not.
josevalim authored
7 # Eager load code on boot. This eager loads most of Rails and
8 # your application in memory, allowing both thread web servers
9 # and those relying on copy on write to perform better.
10 # Rake tasks automatically ignore this option for performance.
11 config.eager_load = true
12
787cac1 @fxn uniformizes the punctuation of comments in some files generated for n…
fxn authored
13 # Full error reports are disabled and caching is turned on.
ec4b18e @josevalim Get rid of deprecation warnings on config/environments/*
josevalim authored
14 config.consider_all_requests_local = false
15 config.action_controller.perform_caching = true
b0b4ae9 test.rb, dev.rb, and production.rb just reopen the Application class;…
Carlhuda authored
16
586a991 @guilleiguaran config.action_dispatch.rack_cache should set explicitly to enable Rac…
guilleiguaran authored
17 # Enable Rack::Cache to put a simple HTTP cache in front of your application
18 # Add `rack-cache` to your Gemfile before enabling this.
19 # For large-scale production use, consider using a caching reverse proxy like nginx, varnish or squid.
20 # config.action_dispatch.rack_cache = true
21
787cac1 @fxn uniformizes the punctuation of comments in some files generated for n…
fxn authored
22 # 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
23 config.serve_static_assets = false
56a86c2 @wycats Make X-Sendfile default to "" so it works correctly in dev mode.
wycats authored
24
ea5a70a @guilleiguaran Skip assets options in environments files when --skip-sprockets is used
guilleiguaran authored
25 <%- unless options.skip_sprockets? -%>
787cac1 @fxn uniformizes the punctuation of comments in some files generated for n…
fxn authored
26 # Compress JavaScripts and CSS.
b8c7e31 @josh Switch to new sprockets-rails plugin
josh authored
27 config.assets.js_compressor = :uglifier
28 # config.assets.css_compressor = :sass
88cb890 Change compressor API so that plugins can register default compressor…
tomhuda authored
29
b83e0c3 @dogweather Corrected the logic in production.rb comment.
dogweather authored
30 # Whether to fallback to assets pipeline if a precompiled asset is missed.
f236e00 @guilleiguaran Backport f443f9cb0c64 to master
guilleiguaran authored
31 config.assets.compile = false
32
787cac1 @fxn uniformizes the punctuation of comments in some files generated for n…
fxn authored
33 # Generate digests for assets URLs.
f236e00 @guilleiguaran Backport f443f9cb0c64 to master
guilleiguaran authored
34 config.assets.digest = true
ea5a70a @guilleiguaran Skip assets options in environments files when --skip-sprockets is used
guilleiguaran authored
35 <%- end -%>
d0b3937 @guilleiguaran Set default location of manifest with config.assets.manifest
guilleiguaran authored
36
787cac1 @fxn uniformizes the punctuation of comments in some files generated for n…
fxn authored
37 # 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
38 # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
39 # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
e84788e @dhh Relevant options closer together
dhh authored
40
2c0c4d7 @sikachu Add `config.force_ssl` configuration which will load `Rack::SSL` midd…
sikachu authored
41 # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
42 # config.force_ssl = true
56a86c2 @wycats Make X-Sendfile default to "" so it works correctly in dev mode.
wycats authored
43
21f6d72 @rosenfeld Make log_level explicit in production.rb template
rosenfeld authored
44 # Set to :debug to see everything in the log.
45 config.log_level = :info
b0b4ae9 test.rb, dev.rb, and production.rb just reopen the Application class;…
Carlhuda authored
46
787cac1 @fxn uniformizes the punctuation of comments in some files generated for n…
fxn authored
47 # Prepend all log lines with the following tags.
be27bf1 @dhh Fix the proper production.rb
dhh authored
48 # config.log_tags = [ :subdomain, :uuid ]
49
787cac1 @fxn uniformizes the punctuation of comments in some files generated for n…
fxn authored
50 # Use a different logger for distributed setups.
be27bf1 @dhh Fix the proper production.rb
dhh authored
51 # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
b0b4ae9 test.rb, dev.rb, and production.rb just reopen the Application class;…
Carlhuda authored
52
787cac1 @fxn uniformizes the punctuation of comments in some files generated for n…
fxn authored
53 # Use a different cache store in production.
b0b4ae9 test.rb, dev.rb, and production.rb just reopen the Application class;…
Carlhuda authored
54 # config.cache_store = :mem_cache_store
55
787cac1 @fxn uniformizes the punctuation of comments in some files generated for n…
fxn authored
56 # 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
57 # config.action_controller.asset_host = "http://assets.example.com"
58
ea5a70a @guilleiguaran Skip assets options in environments files when --skip-sprockets is used
guilleiguaran authored
59 <%- unless options.skip_sprockets? -%>
8132bb6 @guilleiguaran Update production.rb: Split long comment in two lines
guilleiguaran authored
60 # Precompile additional assets.
61 # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
9aac54c @dhh Add note about the option to add other precompile targets
dhh authored
62 # config.assets.precompile += %w( search.js )
ea5a70a @guilleiguaran Skip assets options in environments files when --skip-sprockets is used
guilleiguaran authored
63 <%- end -%>
9aac54c @dhh Add note about the option to add other precompile targets
dhh authored
64
777ffc3 Update railties/lib/rails/generators/rails/app/templates/config/envir…
Adrien Lamothe authored
65 # Ignore bad email addresses and do not raise email delivery errors.
b8c7e31 @josh Switch to new sprockets-rails plugin
josh authored
66 # Set this to true and configure the email server for immediate delivery to raise delivery errors.
b0b4ae9 test.rb, dev.rb, and production.rb just reopen the Application class;…
Carlhuda authored
67 # config.action_mailer.raise_delivery_errors = false
68
9a3a4d6 @svenfuchs Make i18n fallbacks configurable and fallback to the default locale b…
svenfuchs authored
69 # 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
70 # 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
71 config.i18n.fallbacks = true
d4c7d3f @wycats Create a deprecation behavior that triggers a notification for deprec…
wycats authored
72
787cac1 @fxn uniformizes the punctuation of comments in some files generated for n…
fxn authored
73 # Send deprecation notices to registered listeners.
0253bf4 @josevalim Change :notification to :notify (ht: m4n)
josevalim authored
74 config.active_support.deprecation = :notify
0306f82 @fxn implements automatic EXPLAIN logging for slow queries
fxn authored
75
76 <%- unless options.skip_active_record? -%>
77 # 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
78 # with SQLite, MySQL, and PostgreSQL).
0306f82 @fxn implements automatic EXPLAIN logging for slow queries
fxn authored
79 # config.active_record.auto_explain_threshold_in_seconds = 0.5
80 <%- end -%>
7549a78 @felixbuenemann Move config.autoflush_log to correct template.
felixbuenemann authored
81
82 # Disable automatic flushing of the log to improve performance.
fb9a919 @felixbuenemann Use consistent whitespace for commented options.
felixbuenemann authored
83 # config.autoflush_log = false
51aeae9 @tenderlove allow people to specify custom formatters, use the default formatter …
tenderlove authored
84
bb05d99 fix punctuation in config templates
Francesco Rodriguez authored
85 # Use default logging formatter so that PID and timestamp are not suppressed.
51aeae9 @tenderlove allow people to specify custom formatters, use the default formatter …
tenderlove authored
86 config.log_formatter = ::Logger::Formatter.new
adff4a7 @wycats Initial queue implementation
wycats authored
87
9bb4850 @rafaelfranca Use the SynchronousQueue as default in production and development.
rafaelfranca authored
88 # Default the production mode queue to an synchronous queue. You will probably
bb05d99 fix punctuation in config templates
Francesco Rodriguez authored
89 # want to replace this with an out-of-process queueing solution.
c8fe0d5 @jeremy Backpedal from class-oriented config.queue. Set an actual queue insta…
jeremy authored
90 # config.queue = ActiveSupport::SynchronousQueue.new
259f384 @josh Template whitespace
josh authored
91 end
Something went wrong with that request. Please try again.