best practice of HOT reloading dockerized rust code. U can reach to my tiny blog post about this.
run following to experience how fast it is.
docker compose up --build -d
docker compose logs -f
then access
localhost:8080/api/jobs
to see the initial content.
after that, change arbitrally Rust code like
fn jobs() -> &'static str {
"all jobs"
}
to
fn jobs() -> &'static str {
"changedddddddd!!"
}
then reload the page to confirm it's been changed successfully!