fix: limit hot-reload to usefull situations
This commit is contained in:
@ -8,6 +8,7 @@ anyhow = "1.0.89"
|
||||
axum = { version = "0.7.6", features = ["macros"] }
|
||||
listenfd = "1.0.1"
|
||||
tokio = { version = "1.40.0", features = ["macros", "rt-multi-thread"] }
|
||||
tower-http = { version = "0.6.1", features = ["cors"] }
|
||||
|
||||
sea-orm = { workspace = true, features = [
|
||||
# Same `ASYNC_RUNTIME` and `DATABASE_DRIVER` as in the migration crate
|
||||
@ -21,7 +22,6 @@ thiserror.workspace = true
|
||||
entity = { path = "../../entity" }
|
||||
migration = { path = "../../migration" }
|
||||
utils = { path = "../utils" }
|
||||
tower-http = { version = "0.6.1", features = ["cors"] }
|
||||
|
||||
[dev-dependencies]
|
||||
cargo-watch = "8.5.2"
|
||||
|
@ -24,5 +24,5 @@ ln -s ../../.env .env
|
||||
Pour lancer le serveur en mode développement, exécutez la commande suivante :
|
||||
|
||||
```bash
|
||||
systemfd --no-pid -s http::8080 -- cargo watch -x 'run --bin backend'
|
||||
systemfd --no-pid -s http::8080 -- cargo watch -w crates/backend -x 'run --bin backend'
|
||||
```
|
||||
|
Reference in New Issue
Block a user