- update: service port env variable to just be named service_port

This commit is contained in:
2025-03-18 11:57:39 -04:00
parent 8e39c42046
commit 89a1e93dc3
9 changed files with 25 additions and 16 deletions

View File

@@ -147,7 +147,7 @@ pub async fn serve_rest_api(
.layer(cors);
let addr = env::var("LISTEN_ADDR").unwrap_or_else(|_| "0.0.0.0".to_string());
let port = env::var("API_SERVICE_PORT").unwrap_or_else(|_| "8080".to_string());
let port = env::var("SERVICE_PORT").unwrap_or_else(|_| "8080".to_string());
let listener = tokio::net::TcpListener::bind(format!("{}:{}", addr, port))
.await
.unwrap();

View File

@@ -23,7 +23,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
// Set the gRPC server address
let addr = env::var("LISTEN_ADDR").unwrap_or_else(|_| "0.0.0.0".to_string());
let port = env::var("API_SERVICE_PORT").unwrap_or_else(|_| "8080".to_string());
let port = env::var("SERVICE_PORT").unwrap_or_else(|_| "8080".to_string());
// Start health-check endpoint
consul_registration::start_health_check(addr.as_str()).await?;