Skip to content

Commit 07d0863

Browse files
add stage.rb
1 parent f6588b3 commit 07d0863

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed

config/environments/stage.rb

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# frozen_string_literal: true
2+
3+
Rails.application.configure do
4+
# Settings specified here will take precedence over those in config/application.rb.
5+
6+
# Code is not reloaded between requests.
7+
config.cache_classes = true
8+
9+
# Eager load code on boot. This eager loads most of Rails and
10+
# your application in memory, allowing both threaded web servers
11+
# and those relying on copy on write to perform better.
12+
# Rake tasks automatically ignore this option for performance.
13+
config.eager_load = true
14+
15+
# Full error reports are disabled and caching is turned on.
16+
config.consider_all_requests_local = false
17+
18+
# Global enable/disable all memcached usage
19+
config.perform_caching = true
20+
21+
# Disable/enable fragment and page caching in ActionController
22+
config.action_controller.perform_caching = true
23+
24+
# Disable serving static files from the `/public` folder by default since
25+
# Apache or NGINX already handles this.
26+
# config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present?
27+
28+
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
29+
# config.action_controller.asset_host = 'http://assets.example.com'
30+
31+
# Specifies the header that your server uses for sending files.
32+
# config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for Apache
33+
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for NGINX
34+
35+
# Mount Action Cable outside main process or domain
36+
# config.action_cable.mount_path = nil
37+
# config.action_cable.url = 'wss://example.com/cable'
38+
# config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ]
39+
40+
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
41+
# config.force_ssl = true
42+
43+
# Use a real queuing backend for Active Job (and separate queues per environment)
44+
# config.active_job.queue_adapter = :resque
45+
# config.active_job.queue_name_prefix = "content-negotiation_#{Rails.env}"
46+
# config.action_mailer.perform_caching = false
47+
48+
# Ignore bad email addresses and do not raise email delivery errors.
49+
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
50+
# config.action_mailer.raise_delivery_errors = false
51+
52+
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
53+
# the I18n.default_locale when a translation cannot be found).
54+
config.i18n.fallbacks = true
55+
56+
config.active_storage.service = :amazon
57+
58+
# Send deprecation notices to registered listeners.
59+
config.active_support.deprecation = :notify
60+
61+
# Do not dump schema after migrations.
62+
# config.active_record.dump_schema_after_migration = false
63+
end

0 commit comments

Comments
 (0)