mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-19 13:19: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
|
@ -1,3 +1,7 @@
|
||||||
|
# Custom port config
|
||||||
|
# For users who have other applications listening at 3000, this allows them to set a value puma will listen to.
|
||||||
|
PORT=
|
||||||
|
|
||||||
# Exchange Rate API
|
# Exchange Rate API
|
||||||
# This is used to convert between different currencies in the app. We use Synth, which is a Maybe product. You can sign up for a free account at synthfinance.com.
|
# This is used to convert between different currencies in the app. We use Synth, which is a Maybe product. You can sign up for a free account at synthfinance.com.
|
||||||
SYNTH_API_KEY=
|
SYNTH_API_KEY=
|
||||||
|
|
|
@ -56,7 +56,7 @@ Rails.application.configure do
|
||||||
|
|
||||||
config.action_mailer.perform_deliveries = true
|
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.
|
# Print deprecation notices to the Rails logger.
|
||||||
config.active_support.deprecation = :log
|
config.active_support.deprecation = :log
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue