Make mailcatcher & redis work with both Docker and local development
This commit is contained in:
parent
6c2fefa2bf
commit
5e2ff4158e
1 changed files with 2 additions and 2 deletions
|
@ -39,8 +39,8 @@ Foodsoft::Application.configure do
|
||||||
# Mailcatcher config, start mailcatcher from console with 'mailcatcher'
|
# Mailcatcher config, start mailcatcher from console with 'mailcatcher'
|
||||||
# Mailcatcher can be installed by gem install mailcatcher
|
# Mailcatcher can be installed by gem install mailcatcher
|
||||||
config.action_mailer.delivery_method = :smtp
|
config.action_mailer.delivery_method = :smtp
|
||||||
config.action_mailer.smtp_settings = { address: "mailcatcher", port: 1025 }
|
config.action_mailer.smtp_settings = { address: ENV.fetch('MAILCATCHER_PORT_1025_TCP_ADDR', 'localhost'), port: ENV.fetch('MAILCATCHER_PORT_1025_TCP_PORT', 1025) }
|
||||||
|
|
||||||
# Run resque tasks as part of the main app (not recommended for production)
|
# Run resque tasks as part of the main app (not recommended for production)
|
||||||
Resque.inline = true
|
Resque.inline = true unless ENV['REDIS_URL']
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue