Asset fixes (#238)
* Fixed fonts * Fixed assets * Fixed logo in emails * Switched to immediate email delivery * Fixed prod emails and added deployment tasks * Fixed deployments
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -32,25 +28,14 @@ BikeBike::Application.configure do
|
||||
config.assets.debug = true
|
||||
config.assets.digest = true
|
||||
config.assets.compile = true
|
||||
config.assets.precompile += %w(*.png *.jpg *.jpeg *.gif *.json *.ttf *.otf *.woff *.woff2 *.svg *.json)
|
||||
|
||||
# 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
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ BikeBike::Application.configure do
|
||||
# config.assets.css_compressor = :sass
|
||||
|
||||
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
||||
#config.assets.compile = true
|
||||
config.assets.compile = false
|
||||
|
||||
# Generate digests for assets URLs.
|
||||
config.assets.digest = true
|
||||
@@ -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)
|
||||
@@ -66,7 +66,7 @@ BikeBike::Application.configure do
|
||||
# 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 *.json *.ttf *.otf *.woff *.woff2 *.svg *.json)
|
||||
#config.action_controller.asset_host = "https://preview-cdn.bikebike.org"
|
||||
|
||||
# Ignore bad email addresses and do not raise email delivery errors.
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user