forked from aptos-labs/aptos-core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes: aptos-labs#901
- Loading branch information
Showing
6 changed files
with
114 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ | |
config.eager_load = true | ||
|
||
# Full error reports are disabled and caching is turned on. | ||
config.consider_all_requests_local = false | ||
config.consider_all_requests_local = false | ||
config.action_controller.perform_caching = true | ||
|
||
# Ensures that a master key has been made available in either ENV["RAILS_MASTER_KEY"] | ||
|
@@ -30,7 +30,8 @@ | |
config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? | ||
|
||
# Compress CSS using a preprocessor. | ||
# config.assets.css_compressor = :sass | ||
# Must set up dart-sass before re-enabling | ||
config.assets.css_compressor = nil | ||
|
||
# Do not fallback to assets pipeline if a precompiled asset is missed. | ||
config.assets.compile = false | ||
|
@@ -68,6 +69,20 @@ | |
# config.active_job.queue_name_prefix = "cp_production" | ||
|
||
config.action_mailer.perform_caching = false | ||
config.action_mailer.default_url_options = { host: 'community.aptoslabs.com', protocol: 'https' } | ||
config.action_mailer.delivery_method = :smtp | ||
config.action_mailer.perform_deliveries = true | ||
config.action_mailer.raise_delivery_errors = true | ||
config.action_mailer.smtp_settings = { | ||
address: ENV.fetch('SMTP_HOST', nil), | ||
port: ENV.fetch('SMTP_PORT', nil), | ||
enable_starttls_auto: true, # detects and uses STARTTLS | ||
user_name: '[email protected]', | ||
password: ENV.fetch('MAILCHIMP_API_KEY', nil), # SMTP password is any valid API key | ||
authentication: 'login', # Mandrill supports 'plain' or 'login' | ||
domain: 'aptoslabs.com' | ||
} | ||
config.action_mailer.preview_path = "#{Rails.root}/tmp/mailers/previews" | ||
|
||
# Ignore bad email addresses and do not raise email delivery errors. | ||
# Set this to true and configure the email server for immediate delivery to raise delivery errors. | ||
|
@@ -88,9 +103,9 @@ | |
# config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new "app-name") | ||
|
||
if ENV['RAILS_LOG_TO_STDOUT'].present? | ||
logger = ActiveSupport::Logger.new($stdout) | ||
logger = ActiveSupport::Logger.new($stdout) | ||
logger.formatter = config.log_formatter | ||
config.logger = ActiveSupport::TaggedLogging.new(logger) | ||
config.logger = ActiveSupport::TaggedLogging.new(logger) | ||
end | ||
|
||
# Do not dump schema after migrations. | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.