1
0
mirror of https://github.com/actix/examples synced 2025-06-28 18:00:37 +02:00

update to alpha2

This commit is contained in:
Nikolay Kim
2019-03-30 09:12:42 -07:00
parent 26f7c40d5e
commit 9a80911b92
40 changed files with 106 additions and 147 deletions

View File

@ -37,6 +37,7 @@ fn main() -> std::io::Result<()> {
"simple-auth-server=debug,actix_web=info,actix_server=info",
);
env_logger::init();
let sys = actix_rt::System::new("example");
let database_url = std::env::var("DATABASE_URL").expect("DATABASE_URL must be set");
@ -93,5 +94,7 @@ fn main() -> std::io::Result<()> {
.service(fs::Files::new("/", "./static/").index_file("index.html"))
})
.bind("127.0.0.1:3000")?
.run()
.start();
sys.run()
}