The personal finance app for everyone
Allow users to set port in env (#726)
Claude Ayiteyd240c59d7f71
diff --git a/.env.example b/.env.exampleindex 36b277fc..5391e0a4 100644--- a/.env.example+++ b/.env.example@@ -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# 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=@@ -54,7 +58,7 @@ SECRET_KEY_BASE=secret-value# UPGRADES_MODE: Controls how the app will upgrade. `manual` means the user must manually upgrade the app. `auto` means the app will upgrade automatically (great for self-hosting)# UPGRADES_TARGET: Controls what the app will upgrade to. `release` means the app will upgrade to the latest release. `commit` means the app will upgrade to the latest commit.#-UPGRADES_ENABLED=false # unless editing the flow, you should keep this `false` locally in development+UPGRADES_ENABLED=false # unless editing the flow, you should keep this `false` locally in developmentUPGRADES_MODE=manual # `manual` or `auto`UPGRADES_TARGET=release # `release` or `commit`@@ -63,7 +67,7 @@ UPGRADES_TARGET=release # `release` or `commit`# Git Repository Module - responsible for fetching latest commit data for upgrades# ======================================================================================================#-GITHUB_REPO_OWNER=maybe-finance+GITHUB_REPO_OWNER=maybe-financeGITHUB_REPO_NAME=maybeGITHUB_REPO_BRANCH=main@@ -71,7 +75,7 @@ GITHUB_REPO_BRANCH=main# Active Storage Configuration - responsible for storing file uploads# ======================================================================================================#-# * Defaults to disk storage but you can also use Amazon S3, Google Cloud Storage, or Microsoft Azure Storage.+# * Defaults to disk storage but you can also use Amazon S3, Google Cloud Storage, or Microsoft Azure Storage.# * Set the appropriate environment variables to use these services.# * Ensure libvips is installed on your system for image processing - https://github.com/libvips/libvips#@@ -81,4 +85,4 @@ GITHUB_REPO_BRANCH=main# S3_ACCESS_KEY_ID=# S3_SECRET_ACCESS_KEY=# S3_REGION= # defaults to `us-east-1` if not set-# S3_BUCKET=\ No newline at end of file+# S3_BUCKET=diff --git a/config/environments/development.rb b/config/environments/development.rbindex a7efe3e8..907b2b93 100644--- a/config/environments/development.rb+++ b/config/environments/development.rb@@ -56,7 +56,7 @@ Rails.application.configure doconfig.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