Dockerization and generalization of the project. Make it accessable for everyone

This commit is contained in:
Leonard Lorenz 2020-11-17 18:01:54 +01:00
parent d3a5cac4be
commit 85ff8b12f3
7 changed files with 256 additions and 169 deletions

View file

@ -33,7 +33,7 @@ async fn main() -> std::io::Result<()> {
.service(api::blog_delete_post)
.service(fs::Files::new("/static", root_path + "/static"))
})
.bind(String::from("localhost:") + &get_from_env("BIND_PORT", true))?
.bind("0.0.0.0:8000")?
.run()
.await
}