Post

Simple setup for running Svelte SPA on top of Axum in rust. bun run dev for development bun run build for build production static files that we serve in static folder. This will probably run inside CI localhost:5173/dashboard for dev with autoreload localhost:3000/dashboard for production build

This will be used to ship a all-in-one docker image with both UI and API. The goal later on is to also build a binary where we store the static generated files inside the binary using include_str!()/include_bytes!()

Something that I think is underated is when you can download a binary and simply run the binary without docker or similar. Just provide env variables and then run the binary and you get everything you need

0 reposts0 likes

Even if docker is amazing can it sometimes be a bit of an overhead you don't need and maybe what you want is a simply systemd config with auto restart I used gemini to generate this example :D