Closed AlbanMinassian closed 5 years ago
I would like add line "really start .... - date" inside file server.log
and write pid (to file myapp.pid
)
and trigger browser refresh
After the tokio loop begins running, it blocks the current execution until all work is completed. Since this is a web service, typically it won't "complete" on its own since it's listening for incoming requests.
There was a similar question asked here: https://github.com/trezm/Thruster/issues/46
For pid, you can use this: https://doc.rust-lang.org/std/process/fn.id.html
For errors, I would encourage you to have a logging service that handles any error you might encounter in your own code.
Closing for lack of activity
Hello
println!("{}", "do some others actions after start")
(or a function) afterthruster::App::start(app, host, port);
main.rs
Thanks Ami44