1
0
Fork 0
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:
Claude Ayitey 2024-05-08 19:54:40 +00:00 committed by GitHub
parent 6b0ef3a471
commit d240c59d7f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 9 additions and 5 deletions

View file

@ -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