also chdir to destination directory

This commit is contained in:
Damjan Georgievski 2018-07-21 20:13:14 +02:00
parent 6ad16f8dcf
commit a3a95e66c3

View file

@ -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);