Skip to content

Commit 41b73e6

Browse files
committed
Switch to hyper as the default web server
This is changed so that running `cargo run --bin server` locally uses the same web server that we are running in production. The `civet` server can be selected by setting the `WEB_USE_CIVET` environment variable to any value (including an empty string).
1 parent 3dbbcb0 commit 41b73e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bin/server.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
5959
}
6060
});
6161

62-
let server = if dotenv::var("USE_HYPER").is_ok() {
62+
let server = if dotenv::var("WEB_USE_CIVET").is_err() {
6363
use tokio::io::AsyncWriteExt;
6464
use tokio::signal::unix::{signal, SignalKind};
6565

0 commit comments

Comments
 (0)