mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-02-19 13:54:25 +01:00
fix app unable to start
message: no connection pool with 'primary' found postgres
This commit is contained in:
parent
9a0f36c245
commit
86336e3619
@ -2,7 +2,7 @@
|
||||
|
||||
# Mailer configuration
|
||||
class BaseMailer < ActionMailer::Base
|
||||
default from: Setting.get('email_from')
|
||||
default from: ->(*) { Setting.get('mail_from') }
|
||||
layout 'notifications_mailer'
|
||||
|
||||
helper :application
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
# Handle most of the emails sent by the platform. Triggered by notifications
|
||||
class NotificationsMailer < NotifyWith::NotificationsMailer
|
||||
default from: Setting.get('email_from')
|
||||
default from: ->(*) { Setting.get('mail_from') }
|
||||
layout 'notifications_mailer'
|
||||
|
||||
helper :application
|
||||
|
@ -5,5 +5,5 @@ class OverwrittenDeviseMailer < Devise::Mailer
|
||||
helper :application
|
||||
include Devise::Controllers::UrlHelpers
|
||||
default template_path: 'devise/mailer'
|
||||
default from: Setting.get('email_from')
|
||||
default from: ->(*) { Setting.get('mail_from') }
|
||||
end
|
||||
|
@ -30,8 +30,8 @@ Rails.application.configure do
|
||||
end
|
||||
|
||||
config.action_controller.default_url_options = {
|
||||
host: Setting.get('base_url_host'),
|
||||
protocol: Setting.get('base_url_protocol')
|
||||
host: ->(*) { Setting.get('base_url_host') },
|
||||
protocol: ->(*) { Setting.get('base_url_protocol') }
|
||||
}
|
||||
|
||||
# Store uploaded files on the local file system (see config/storage.yml for options)
|
||||
@ -46,8 +46,8 @@ Rails.application.configure do
|
||||
config.action_mailer.smtp_settings = { address: 'fabmanager-mailcatcher', port: 1025 }
|
||||
config.action_mailer.raise_delivery_errors = false
|
||||
config.action_mailer.default_url_options = {
|
||||
host: Setting.get('base_url_host'),
|
||||
protocol: Setting.get('base_url_protocol')
|
||||
host: ->(*) { Setting.get('base_url_host') },
|
||||
protocol: ->(*) { Setting.get('base_url_protocol') }
|
||||
}
|
||||
|
||||
# Print deprecation notices to the Rails logger.
|
||||
|
@ -21,8 +21,8 @@ Rails.application.configure do
|
||||
# config.require_master_key = true
|
||||
|
||||
config.action_controller.default_url_options = {
|
||||
host: Setting.get('base_url_host'),
|
||||
protocol: Setting.get('base_url_protocol')
|
||||
host: ->(*) { Setting.get('base_url_host') },
|
||||
protocol: ->(*) { Setting.get('base_url_protocol') }
|
||||
}
|
||||
|
||||
# Disable serving static files from the `/public` folder by default since
|
||||
@ -78,8 +78,8 @@ Rails.application.configure do
|
||||
config.action_mailer.perform_caching = false
|
||||
|
||||
config.action_mailer.default_url_options = {
|
||||
host: Setting.get('base_url_host'),
|
||||
protocol: Setting.get('base_url_protocol')
|
||||
host: ->(*) { Setting.get('base_url_host') },
|
||||
protocol: ->(*) { Setting.get('base_url_protocol') }
|
||||
}
|
||||
# config.action_mailer.perform_deliveries = true
|
||||
# config.action_mailer.raise_delivery_errors = false
|
||||
|
@ -17,8 +17,8 @@ Rails.application.configure do
|
||||
config.action_controller.perform_caching = true
|
||||
|
||||
config.action_controller.default_url_options = {
|
||||
host: Setting.get('base_url_host'),
|
||||
protocol: Setting.get('base_url_protocol')
|
||||
host: ->(*) { Setting.get('base_url_host') },
|
||||
protocol: ->(*) { Setting.get('base_url_protocol') }
|
||||
}
|
||||
|
||||
# Enable Rack::Cache to put a simple HTTP cache in front of your application
|
||||
@ -89,8 +89,8 @@ Rails.application.configure do
|
||||
# config.serve_static_assets = true
|
||||
|
||||
config.action_mailer.default_url_options = {
|
||||
host: Setting.get('base_url_host'),
|
||||
protocol: Setting.get('base_url_protocol')
|
||||
host: ->(*) { Setting.get('base_url_host') },
|
||||
protocol: ->(*) { Setting.get('base_url_protocol') }
|
||||
}
|
||||
# config.action_mailer.perform_deliveries = true
|
||||
# config.action_mailer.raise_delivery_errors = false
|
||||
|
@ -25,8 +25,8 @@ Rails.application.configure do
|
||||
config.action_controller.perform_caching = false
|
||||
|
||||
config.action_controller.default_url_options = {
|
||||
host: Setting.get('base_url_host'),
|
||||
protocol: Setting.get('base_url_protocol')
|
||||
host: ->(*) { Setting.get('base_url_host') },
|
||||
protocol: ->(*) { Setting.get('base_url_protocol') }
|
||||
}
|
||||
|
||||
# Raise exceptions instead of rendering exception templates.
|
||||
|
Loading…
x
Reference in New Issue
Block a user