Skip to content

vxcall/dockerized-rust-hot-reload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔥 dockerized-rust-hot-reload

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!

About

best practice of HOT reloading dockerized rust code.

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages