-
Notifications
You must be signed in to change notification settings - Fork 92
/
Copy pathlocal_production.rb
45 lines (45 loc) · 1.78 KB
/
local_production.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
Rails.application.configure do
config.webpacker.check_yarn_integrity = false
config.cache_classes = true
config.eager_load = true
config.consider_all_requests_local = false
config.action_controller.perform_caching = true
config.cache_store = :memory_store
config.public_file_server.enabled = true
config.public_file_server.headers = {
"Cache-Control" => "public, s-maxage=2592000, max-age=86400"
}
config.assets.js_compressor = Uglifier.new(harmony: true)
config.action_mailer.raise_delivery_errors = false
config.active_support.deprecation = :log
config.active_record.migration_error = :page_load
config.assets.debug = false
config.assets.compile = true
config.assets.digest = true
config.assets.quiet = true
config.assets.raise_runtime_errors = true
config.log_formatter = ::Logger::Formatter.new
if ENV["RAILS_LOG_TO_STDOUT"].present?
logger = ActiveSupport::Logger.new(STDOUT)
logger.formatter = config.log_formatter
config.logger = ActiveSupport::TaggedLogging.new(logger)
end
config.action_mailer.perform_caching = false
config.app_domain = "localhost:3000"
config.action_mailer.default_url_options = { host: "localhost:3000" }
config.action_mailer.delivery_method = :smtp
config.action_mailer.perform_deliveries = true
config.action_mailer.default_url_options = { host: config.app_domain }
config.action_mailer.smtp_settings = {
address: "smtp.gmail.com",
port: "587",
enable_starttls_auto: true,
user_name: '<%= ENV["DEVELOPMENT_EMAIL_USERNAME"] %>',
password: '<%= ENV["DEVELOPMENT_EMAIL_PASSWORD"] %>',
authentication: :plain,
domain: "localhost:3000"
}
config.action_mailer.preview_path = "#{Rails.root}/spec/mailers/previews"
config.log_level = :debug
config.log_tags = [:request_id]
end