Readme
This commit is contained in:
parent
ea88d73e84
commit
5c0a5be9ad
@ -1,5 +1,12 @@
|
|||||||
# Actix 4 Beta with SeaORM example app
|
# 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.
|
Edit `.env` to point to your database.
|
||||||
|
|
||||||
Run server with auto-reloading:
|
Run server with auto-reloading:
|
||||||
|
@ -1,10 +1,17 @@
|
|||||||
# Actix with SeaORM example app
|
# 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.
|
Edit `.env` to point to your database.
|
||||||
|
|
||||||
Run server with auto-reloading:
|
Run server with auto-reloading:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cargo install systemfd
|
cargo install systemfd
|
||||||
systemfd --no-pid -s http::5000 -- cargo watch -x run
|
systemfd --no-pid -s http::8000 -- cargo watch -x run
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user