mirror of
https://github.com/actix/examples
synced 2025-06-28 09:50:36 +02:00
update to alpha2
This commit is contained in:
@ -7,7 +7,8 @@ workspace = ".."
|
||||
|
||||
[dependencies]
|
||||
actix = { version = "0.8.0-alpha.2", features = ["http"] }
|
||||
actix-web = "1.0.0-alpha.1"
|
||||
actix-rt = "0.2.2"
|
||||
actix-web = "1.0.0-alpha.2"
|
||||
actix-files = "0.1.0-alpha.1"
|
||||
|
||||
bcrypt = "0.2.1"
|
||||
|
@ -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()
|
||||
}
|
||||
|
Reference in New Issue
Block a user