summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorSanto Cariotti <santo@dcariotti.me>2021-03-09 21:05:47 +0100
committerGitHub <noreply@github.com>2021-03-09 21:05:47 +0100
commited24f917ffabfead27d8b5899e29b55eff2810cc (patch)
treeafd8008c851add0a19ad3201d4019b41358da9b3 /src/main.rs
parent21ec8d86f701f1a261fa2c3892034c7763a950b6 (diff)
parent309c8bc5308c8f58d67a6cc9b60de377a614f139 (diff)
Merge pull request #4 from gico-net/feat/conf-host-port
Add Server configuration by environment file
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 0ef80bb..51c2f6d 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -19,7 +19,7 @@ async fn main() -> std::io::Result<()> {
.to(|| HttpResponse::Ok().body("Hello from Rust!")),
)
})
- .bind("127.0.0.1:8080")?
+ .bind(format!("{}:{}", config.server.host, config.server.port))?
.run()
.await
}