also chdir to destination directory
This commit is contained in:
parent
6ad16f8dcf
commit
a3a95e66c3
1 changed files with 3 additions and 0 deletions
|
@ -50,6 +50,9 @@ fn main() -> Result<(), io::Error> {
|
|||
std::env::set_var("RUST_LOG", "info");
|
||||
env_logger::init();
|
||||
|
||||
let root = std::path::Path::new(&chdir);
|
||||
std::env::set_current_dir(&root).unwrap();
|
||||
|
||||
let sys = actix::System::new("http_server_rs");
|
||||
|
||||
let directory = String::from(chdir);
|
||||
|
|
Loading…
Add table
Reference in a new issue