Compare commits
No commits in common. "eebd04d3edd72f1aa12f9af369a26a7f6f7bb6b1" and "868b3457a86542c5ed0ca9d097b5821bb281ad02" have entirely different histories.
eebd04d3ed
...
868b3457a8
3 changed files with 2 additions and 50 deletions
5
Gemfile
5
Gemfile
|
@ -58,8 +58,3 @@ gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
|
||||||
|
|
||||||
gem 'devise'
|
gem 'devise'
|
||||||
gem 'devise-i18n'
|
gem 'devise-i18n'
|
||||||
|
|
||||||
group :production do
|
|
||||||
gem 'lograge'
|
|
||||||
gem 'exception_notification'
|
|
||||||
end
|
|
||||||
|
|
12
Gemfile.lock
12
Gemfile.lock
|
@ -98,9 +98,6 @@ GEM
|
||||||
devise (>= 4.8.0)
|
devise (>= 4.8.0)
|
||||||
errbase (0.2.1)
|
errbase (0.2.1)
|
||||||
erubi (1.10.0)
|
erubi (1.10.0)
|
||||||
exception_notification (4.5.0)
|
|
||||||
actionmailer (>= 5.2, < 8)
|
|
||||||
activesupport (>= 5.2, < 8)
|
|
||||||
ffi (1.15.4-x86_64-linux-musl)
|
ffi (1.15.4-x86_64-linux-musl)
|
||||||
globalid (1.0.0)
|
globalid (1.0.0)
|
||||||
activesupport (>= 5.0)
|
activesupport (>= 5.0)
|
||||||
|
@ -111,11 +108,6 @@ GEM
|
||||||
listen (3.7.0)
|
listen (3.7.0)
|
||||||
rb-fsevent (~> 0.10, >= 0.10.3)
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
||||||
rb-inotify (~> 0.9, >= 0.9.10)
|
rb-inotify (~> 0.9, >= 0.9.10)
|
||||||
lograge (0.11.2)
|
|
||||||
actionpack (>= 4)
|
|
||||||
activesupport (>= 4)
|
|
||||||
railties (>= 4)
|
|
||||||
request_store (~> 1.0)
|
|
||||||
loofah (2.12.0)
|
loofah (2.12.0)
|
||||||
crass (~> 1.0.2)
|
crass (~> 1.0.2)
|
||||||
nokogiri (>= 1.5.9)
|
nokogiri (>= 1.5.9)
|
||||||
|
@ -180,8 +172,6 @@ GEM
|
||||||
rb-inotify (0.10.1)
|
rb-inotify (0.10.1)
|
||||||
ffi (~> 1.0)
|
ffi (~> 1.0)
|
||||||
regexp_parser (2.2.0)
|
regexp_parser (2.2.0)
|
||||||
request_store (1.5.1)
|
|
||||||
rack (>= 1.4)
|
|
||||||
responders (3.0.1)
|
responders (3.0.1)
|
||||||
actionpack (>= 5.0)
|
actionpack (>= 5.0)
|
||||||
railties (>= 5.0)
|
railties (>= 5.0)
|
||||||
|
@ -267,10 +257,8 @@ DEPENDENCIES
|
||||||
capybara (>= 3.26)
|
capybara (>= 3.26)
|
||||||
devise
|
devise
|
||||||
devise-i18n
|
devise-i18n
|
||||||
exception_notification
|
|
||||||
jbuilder (~> 2.7)
|
jbuilder (~> 2.7)
|
||||||
listen (~> 3.3)
|
listen (~> 3.3)
|
||||||
lograge
|
|
||||||
pg (~> 1.1)
|
pg (~> 1.1)
|
||||||
puma (~> 5.0)
|
puma (~> 5.0)
|
||||||
rack-mini-profiler (~> 2.0)
|
rack-mini-profiler (~> 2.0)
|
||||||
|
|
|
@ -73,15 +73,12 @@ Rails.application.configure do
|
||||||
# Tell Active Support which deprecation messages to disallow.
|
# Tell Active Support which deprecation messages to disallow.
|
||||||
config.active_support.disallowed_deprecation_warnings = []
|
config.active_support.disallowed_deprecation_warnings = []
|
||||||
|
|
||||||
# Log Rage
|
|
||||||
config.lograge.enabled = true
|
|
||||||
|
|
||||||
# Use default logging formatter so that PID and timestamp are not suppressed.
|
# Use default logging formatter so that PID and timestamp are not suppressed.
|
||||||
config.log_formatter = ::Logger::Formatter.new
|
config.log_formatter = ::Logger::Formatter.new
|
||||||
|
|
||||||
# Use a different logger for distributed setups.
|
# Use a different logger for distributed setups.
|
||||||
require "syslog/logger"
|
# require "syslog/logger"
|
||||||
config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'ectomobile')
|
# config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name')
|
||||||
|
|
||||||
if ENV["RAILS_LOG_TO_STDOUT"].present?
|
if ENV["RAILS_LOG_TO_STDOUT"].present?
|
||||||
logger = ActiveSupport::Logger.new(STDOUT)
|
logger = ActiveSupport::Logger.new(STDOUT)
|
||||||
|
@ -92,34 +89,6 @@ Rails.application.configure do
|
||||||
# Do not dump schema after migrations.
|
# Do not dump schema after migrations.
|
||||||
config.active_record.dump_schema_after_migration = false
|
config.active_record.dump_schema_after_migration = false
|
||||||
|
|
||||||
mailer_default_from = ENV.fetch('DEFAULT_FROM', 'noreply@sutty.nl')
|
|
||||||
|
|
||||||
config.action_mailer.perform_deliveries = true
|
|
||||||
config.action_mailer.raise_delivery_errors = true
|
|
||||||
config.action_mailer.delivery_method = :smtp
|
|
||||||
|
|
||||||
config.action_mailer.default_url_options = {
|
|
||||||
host: ENV.fetch('PUBLIC_HOSTNAME', 'ectomobile.sutty.nl'),
|
|
||||||
protocol: 'https'
|
|
||||||
}
|
|
||||||
|
|
||||||
config.action_mailer.smtp_settings = {
|
|
||||||
address: ENV.fetch('MAIL_SERVER', 'localhost'),
|
|
||||||
domain: mailer_default_from.split('@', 2).last.gsub(/[^a-z0-9\.]/, ''),
|
|
||||||
enable_starttls_auto: false
|
|
||||||
}
|
|
||||||
|
|
||||||
config.action_mailer.default_options = {
|
|
||||||
from: mailer_default_from
|
|
||||||
}
|
|
||||||
|
|
||||||
config.middleware.use ExceptionNotification::Rack,
|
|
||||||
email: {
|
|
||||||
email_prefix: '[Ectomobile] ',
|
|
||||||
sender_address: mailer_default_from,
|
|
||||||
exception_recipients: ENV.fetch('EXCEPTIONS_RECIPIENTS', 'excepciones@sutty.nl').split(',')
|
|
||||||
}
|
|
||||||
|
|
||||||
# Inserts middleware to perform automatic connection switching.
|
# Inserts middleware to perform automatic connection switching.
|
||||||
# The `database_selector` hash is used to pass options to the DatabaseSelector
|
# The `database_selector` hash is used to pass options to the DatabaseSelector
|
||||||
# middleware. The `delay` is used to determine how long to wait after a write
|
# middleware. The `delay` is used to determine how long to wait after a write
|
||||||
|
|
Loading…
Reference in a new issue