Skip to content

Commit 04eab84

Browse files
committed
feat: added feedback to deployed server binaries
Fixes #164.
1 parent cb39dc1 commit 04eab84

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/perseus/src/engine/dflt_engine.rs

+8
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,14 @@ where
112112
let props = get_props(app());
113113
// This returns a `(String, u16)` of the host and port for maximum compatibility
114114
let addr = get_host_and_port();
115+
// In production, give the user a heads up that something's actually happening
116+
#[cfg(not(debug_assertions))]
117+
println!(
118+
"Your production app is now live on <http://{host}:{port}>! To change this, re-run this command with different settings for the `PERSEUS_HOST` and `PERSEUS_PORT` environment variables.\nNote that the above address will not reflect any domains configured.",
119+
host = &addr.0,
120+
port = &addr.1
121+
);
122+
115123
serve_fn(props, addr).await;
116124
0
117125
}

0 commit comments

Comments
 (0)