mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-24 15:49:39 +02:00
Allow users to set port in env (#726)
* Add custom port option to env.example * Update readme. * Port in bin/dev looks for env var before defaulting to 3000 * Change port for mailer in dev environment. * Revisions in dev and readme files.
This commit is contained in:
parent
6b0ef3a471
commit
d240c59d7f
2 changed files with 9 additions and 5 deletions
|
@ -56,7 +56,7 @@ Rails.application.configure do
|
|||
|
||||
config.action_mailer.perform_deliveries = true
|
||||
|
||||
config.action_mailer.default_url_options = { host: "localhost", port: 3000 }
|
||||
config.action_mailer.default_url_options = { host: "localhost", port: ENV.fetch("PORT") { 3000 } }
|
||||
|
||||
# Print deprecation notices to the Rails logger.
|
||||
config.active_support.deprecation = :log
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue