sea-orm/examples/actix_example
Billy Chan 2d5aa2a61b
Log with tracing-subscriber (#399)
* chore: log examples with tracing-subscriber

* chore: log [issues] with tracing-subscriber

* chore: log [cli] with tracing-subscriber

* feat: tracing will emit log if tracing-subscriber is not setup
2021-12-24 23:59:37 +08:00
..
2021-12-24 23:59:37 +08:00
2021-09-11 17:02:59 +10:00
2021-09-20 21:00:51 +10:00
2021-10-01 11:11:48 +08:00
2021-12-24 23:59:37 +08:00
2021-10-02 14:20:49 +08:00

Actix with SeaORM example app

Edit Cargo.toml to use sqlx-mysql or sqlx-postgres.

[features]
default = ["sqlx-$DATABASE"]

Edit .env to point to your database.

Run server with auto-reloading:

cargo install systemfd
systemfd --no-pid -s http::8000 -- cargo watch -x run