git ssb

0+

dangerousbeans / project-entropy.com



Tree: a2ce6506099a118025535d75c97f19731f8afcd7

Files: a2ce6506099a118025535d75c97f19731f8afcd7 / config / environments / production.rb

3789 bytesRaw
1Rails.application.configure do
2 # Verifies that versions and hashed value of the package contents in the project's package.json
3 config.webpacker.check_yarn_integrity = false
4
5 # Settings specified here will take precedence over those in config/application.rb.
6
7 # Code is not reloaded between requests.
8 config.cache_classes = true
9
10 # Eager load code on boot. This eager loads most of Rails and
11 # your application in memory, allowing both threaded web servers
12 # and those relying on copy on write to perform better.
13 # Rake tasks automatically ignore this option for performance.
14 config.eager_load = true
15
16 # Full error reports are disabled and caching is turned on.
17 config.consider_all_requests_local = false
18 config.action_controller.perform_caching = true
19
20 # Enable Rack::Cache to put a simple HTTP cache in front of your application
21 # Add `rack-cache` to your Gemfile before enabling this.
22 # For large-scale production use, consider using a caching reverse proxy like nginx, varnish or squid.
23 # config.action_dispatch.rack_cache = true
24
25 # Disable Rails's static asset server (Apache or nginx will already do this).
26 config.serve_static_files = false
27
28 # Compress JavaScripts and CSS.
29 config.assets.js_compressor = :uglifier
30 # config.assets.css_compressor = :sass
31
32 # Do not fallback to assets pipeline if a precompiled asset is missed.
33 config.assets.compile = false
34
35 # Generate digests for assets URLs.
36 config.assets.digest = true
37 # config.assets.enabled = true
38 # config.assets.prefix = "/bitboat/assets"
39
40 # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb
41
42 # Specifies the header that your server uses for sending files.
43 # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache
44 # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
45
46 # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
47 # config.force_ssl = true
48
49 # Set to :debug to see everything in the log.
50 config.log_level = :info
51
52 # Prepend all log lines with the following tags.
53 # config.log_tags = [ :subdomain, :uuid ]
54
55 # Use a different logger for distributed setups.
56 # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
57
58 # Use a different cache store in production.
59 # config.cache_store = :mem_cache_store
60 config.cache_store = :dalli_store,
61 (ENV["MEMCACHEDCLOUD_SERVERS"] || "").split(","),
62 {:username => ENV["MEMCACHEDCLOUD_USERNAME"],
63 :password => ENV["MEMCACHEDCLOUD_PASSWORD"],
64 :failover => true,
65 :socket_timeout => 1.5,
66 :socket_failure_delay => 0.2
67 }
68
69
70 # Enable serving of images, stylesheets, and JavaScripts from an asset server.
71 config.action_controller.asset_host = "d2562klppkgh9t.cloudfront.net"
72
73 # Ignore bad email addresses and do not raise email delivery errors.
74 # Set this to true and configure the email server for immediate delivery to raise delivery errors.
75 # config.action_mailer.raise_delivery_errors = false
76
77 # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
78 # the I18n.default_locale when a translation cannot be found).
79 config.i18n.fallbacks = true
80
81 # Send deprecation notices to registered listeners.
82 config.active_support.deprecation = :notify
83
84 # Disable automatic flushing of the log to improve performance.
85 # config.autoflush_log = false
86
87 # Use default logging formatter so that PID and timestamp are not suppressed.
88 config.log_formatter = ::Logger::Formatter.new
89
90 # Do not dump schema after migrations.
91 # config.active_record.dump_schema_after_migration = false
92
93end
94

Built with git-ssb-web