Added startup script
This commit is contained in:
parent
dbf573f980
commit
74a4e07bb0
2 changed files with 3 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ pub async fn run() -> anyhow::Result<()> {
|
||||||
.with(tracing_subscriber::fmt::layer())
|
.with(tracing_subscriber::fmt::layer())
|
||||||
.init();
|
.init();
|
||||||
info!("initializing router...");
|
info!("initializing router...");
|
||||||
let port = 8000_u16;
|
let port = 21212_u16;
|
||||||
let addr = std::net::SocketAddr::from(([0, 0, 0, 0], port));
|
let addr = std::net::SocketAddr::from(([0, 0, 0, 0], port));
|
||||||
let router = html::root::get_router();
|
let router = html::root::get_router();
|
||||||
info!("router initialized, now listening on port {}", port);
|
info!("router initialized, now listening on port {}", port);
|
||||||
|
|
|
||||||
2
startup.sh
Executable file
2
startup.sh
Executable file
|
|
@ -0,0 +1,2 @@
|
||||||
|
#! /usr/bin/bash
|
||||||
|
target/release/achubb_backend
|
||||||
Loading…
Reference in a new issue