You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The .env, test.env, and README.md files refer to an environment variable called ZION_SERVER_PORT for configuring the port the Zion server should listen on:
# ZION_SERVER_PORT specifies the port number on which the Zion server will listen for incoming requests.
ZION_SERVER_PORT=3000
However, in the codebase itself, this environment variable is apparently not being used and instead, the AppConfig tries to use the variables ZION_APP_HOST and ZION_APP_PORT instead:
Is this correct or should ZION_APP_HOST and ZION_APP_PORT be changed to ZION_SERVER_HOST and ZION_SERVER_PORT here (or vice versa)?
The text was updated successfully, but these errors were encountered:
JKRhb
changed the title
Discrepancy of environmental variable names (SERVER vs APP)
Discrepancy of environment variable names (SERVER vs APP)
Dec 14, 2023
Thank you for the report, I'm actively working on revolutionizing the configuration process. You can see a short of status in the configuration branch. I wanted to close it fast but I went down the white rabbit hole and now it got out of hand. But once finalized we will have a single source of truth with the configuration parameters that can be passed by:
CLI
ENVs
Config files (JSON, YAML, or toml).
Ofc, once I finish I'll update the README accordingly (we can generate the env example automatically).
The
.env
,test.env
, andREADME.md
files refer to an environment variable calledZION_SERVER_PORT
for configuring the port the Zion server should listen on:zion/test.env
Line 2 in 5b03e3e
zion/.env
Line 3 in 5b03e3e
zion/README.md
Lines 66 to 67 in 5b03e3e
However, in the codebase itself, this environment variable is apparently not being used and instead, the
AppConfig
tries to use the variablesZION_APP_HOST
andZION_APP_PORT
instead:zion/src/config/config.service.ts
Lines 24 to 25 in 5b03e3e
Is this correct or should
ZION_APP_HOST
andZION_APP_PORT
be changed toZION_SERVER_HOST
andZION_SERVER_PORT
here (or vice versa)?The text was updated successfully, but these errors were encountered: