Dockerization and generalization of the project. Make it accessable for everyone
This commit is contained in:
parent
d3a5cac4be
commit
85ff8b12f3
7 changed files with 256 additions and 169 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue