This commit is contained in:
Chris Tsang 2021-10-02 14:20:49 +08:00
parent ea88d73e84
commit 5c0a5be9ad
2 changed files with 15 additions and 1 deletions

View File

@ -1,5 +1,12 @@
# Actix 4 Beta with SeaORM example app
Edit `Cargo.toml` to use `sqlx-mysql` or `sqlx-postgres`.
```toml
[features]
default = ["sqlx-$DATABASE"]
```
Edit `.env` to point to your database.
Run server with auto-reloading:

View File

@ -1,10 +1,17 @@
# Actix with SeaORM example app
Edit `Cargo.toml` to use `sqlx-mysql` or `sqlx-postgres`.
```toml
[features]
default = ["sqlx-$DATABASE"]
```
Edit `.env` to point to your database.
Run server with auto-reloading:
```bash
cargo install systemfd
systemfd --no-pid -s http::5000 -- cargo watch -x run
systemfd --no-pid -s http::8000 -- cargo watch -x run
```