fix: limit hot-reload to usefull situations

This commit is contained in:
2024-09-24 18:33:54 +02:00
parent 2ded18692d
commit 5f20c4b893
3 changed files with 8 additions and 4 deletions

View File

@ -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"

View File

@ -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'
```