From 25f083ee755e7dc6db85a4fae6c94510fc0ac9b8 Mon Sep 17 00:00:00 2001 From: Caleb Cox Date: Tue, 10 Jan 2023 16:39:33 -0600 Subject: [PATCH] feat: respect $PORT environment variable --- cargo-shuttle/src/args.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cargo-shuttle/src/args.rs b/cargo-shuttle/src/args.rs index e7f0d8d59..7bd9fa878 100644 --- a/cargo-shuttle/src/args.rs +++ b/cargo-shuttle/src/args.rs @@ -141,7 +141,7 @@ pub struct DeployArgs { #[derive(Parser, Debug)] pub struct RunArgs { /// port to start service on - #[clap(long, default_value = "8000")] + #[clap(long, env, default_value = "8000")] pub port: u16, /// use 0.0.0.0 instead of localhost (for usage with local external devices) #[clap(long)]