Fixed prod emails and added deployment tasks

This commit is contained in:
Godwin
2017-07-23 08:25:22 -07:00
parent df748ee8be
commit a0658485b2
4 changed files with 61 additions and 32 deletions
-16
View File
@@ -1,7 +1,3 @@
#require 'perftools'
#OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE
BikeBike::Application.configure do
# Settings specified here will take precedence over those in config/application.rb.
@@ -36,22 +32,10 @@ BikeBike::Application.configure do
# to deliver to the browser instead of email
config.action_mailer.delivery_method = :letter_opener
# config.action_mailer.delivery_method = :smtp
# config.action_mailer.smtp_settings = {
# address: 'smtp.gmail.com',
# domain: 'bikebike.org',
# port: 587,
# authentication: :plain,
# enable_starttls_auto: true,
# openssl_verify_mode: 'none',
# user_name: 'info@bikebike.org',
# password: 'Toronto@)!)'
# }
config.action_mailer.raise_delivery_errors = true
config.action_mailer.perform_deliveries = true
config.serve_static_files = true
# config.action_controller.perform_caching = true
I18n.config.language_detection_method = I18n::Config::DETECT_LANGUAGE_FROM_URL_PARAM
+1 -1
View File
@@ -52,7 +52,7 @@ BikeBike::Application.configure do
# config.assets.digest = true
# Prepend all log lines with the following tags.
# config.log_tags = [ :subdomain, :uuid ]
config.log_tags = [ :subdomain, :uuid ]
# Use a different logger for distributed setups.
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
+3 -10
View File
@@ -46,13 +46,10 @@ BikeBike::Application.configure do
# Set to :debug to see everything in the log.
config.log_level = :info
#config.cache_classes = true
#config.serve_static_assets = true
#config.assets.compile = true
# config.assets.digest = true
config.assets.compile = false
# Prepend all log lines with the following tags.
# config.log_tags = [ :subdomain, :uuid ]
config.log_tags = [ :subdomain, :uuid ]
# Use a different logger for distributed setups.
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
@@ -64,11 +61,7 @@ BikeBike::Application.configure do
# config.action_controller.asset_host = "http://assets.example.com"
# Precompile additional assets.
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
# config.assets.precompile += %w( search.js )
#config.assets.precompile += %w(*.png *.jpg *.jpeg *.gif)
config.assets.precompile += %w(*.png *.jpg *.jpeg *.gif *.svg)
#config.action_controller.asset_host = "https://cdn.bikebike.org"
config.assets.precompile += %w(*.png *.jpg *.jpeg *.gif *.json *.ttf *.otf *.woff *.woff2 *.svg *.json)
# 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.