Skip to content

A local-first personal finance app

🐛 Fix for ACTUAL_PORT and PORT vars (#4537)

lelemme0805c125f27
diff --git a/packages/sync-server/src/load-config.js b/packages/sync-server/src/load-config.js
index f57ae7841a..33871362fb 100644
--- a/packages/sync-server/src/load-config.js
+++ b/packages/sync-server/src/load-config.js
@@ -64,8 +64,8 @@ const configSchema = convict({
port: {
doc: 'Port to run the server on.',
format: 'port',
- default: 5006,
- env: ['ACTUAL_PORT', 'PORT'],
+ default: process.env.PORT ? process.env.PORT : 5006,
+ env: 'ACTUAL_PORT',
},
hostname: {
doc: 'Server hostname.',
diff --git a/upcoming-release-notes/4537.md b/upcoming-release-notes/4537.md
new file mode 100644
index 0000000000..cbeac5e6c4
--- /dev/null
+++ b/upcoming-release-notes/4537.md
@@ -0,0 +1,6 @@
+---
+category: Bugfix
+authors: [lelemm]
+---
+
+Fix for ACTUAL_PORT and PORT vars
\ No newline at end of file