The personal finance app for everyone (by everyone)
Ruby
fix: use port configured in .env (#773)
Gilles Devillers75bbeed3002a
diff --git a/.devcontainer/docker-compose.yml b/.devcontainer/docker-compose.ymlindex cfaf22ece0..3a48dc7a8a 100644--- a/.devcontainer/docker-compose.yml+++ b/.devcontainer/docker-compose.yml@@ -21,7 +21,7 @@ services:- ..:/workspace:cached- bundle_cache:/bundleports:- - "3000:3000"+ - ${PORT:-3000}:3000command: sleep infinityenvironment:<<: *rails_envdiff --git a/.env.local.example b/.env.local.exampleindex 9bcaf3da4d..e91e7cf0e4 100644--- a/.env.local.example+++ b/.env.local.example@@ -1,6 +1,10 @@# To enable / disable self-hosting features.SELF_HOSTED = true+# Custom port config+# For users who have other applications listening at 3000, this allows them to set a value puma will listen to.+PORT=3000+# SimpleFIN runtime flags (default-off)# Accepted truthy values: 1, true, yes, on# SIMPLEFIN_DEBUG_RAW: when truthy, logs the raw payload returned by SimpleFIN (debug-only; can be noisy)diff --git a/.env.test.example b/.env.test.exampleindex 14a75ea3ee..9b0fbb62b6 100644--- a/.env.test.example+++ b/.env.test.example@@ -1,5 +1,9 @@SELF_HOSTED=false+# Custom port config+# For users who have other applications listening at 3000, this allows them to set a value puma will listen to.+PORT=3000+# SimpleFIN runtime flags (default-off)# Accepted truthy values: 1, true, yes, on# SIMPLEFIN_DEBUG_RAW: when truthy, logs the raw payload returned by SimpleFIN (debug-only; can be noisy)diff --git a/compose.example.ai.yml b/compose.example.ai.ymlindex 0230b8166b..6a2e9f78de 100644--- a/compose.example.ai.yml+++ b/compose.example.ai.yml@@ -106,7 +106,7 @@ services:volumes:- app-storage:/rails/storageports:- - "3000:3000"+ - ${PORT:-3000}:3000restart: unless-stoppedenvironment:<<: *rails_envdiff --git a/compose.example.yml b/compose.example.ymlindex f8c33e9adf..a01daca2e8 100644--- a/compose.example.yml+++ b/compose.example.yml@@ -50,7 +50,7 @@ services:volumes:- app-storage:/rails/storageports:- - 3000:3000+ - ${PORT:-3000}:3000restart: unless-stoppedenvironment:<<: *rails_env