diff --git a/bin/core/src/state.rs b/bin/core/src/state.rs index 511ccb6fb..7e14482f4 100644 --- a/bin/core/src/state.rs +++ b/bin/core/src/state.rs @@ -45,7 +45,11 @@ pub struct State { impl State { pub async fn load() -> anyhow::Result> { let env = Env::load()?; - let config = CoreConfig::load(&env.config_path); + let mut config = CoreConfig::load(&env.config_path); + + if let Some(port) = env.port { + config.port = port; + } logger::init(config.log_level.into())?;