Help with the basics of deployment #3561
Replies: 2 comments 1 reply
-
|
What you described re. running I think the next step up from that that I would consider personally would be setting up a small script to build a container from the app using buildah (CLI because I find it much more accessible than Regarding security updates of the VM system + adjacent services, I'm not much of a devops person so others may be able to answer this better, but I think both Debian and Ubuntu server offer automatic background updates (not sure about reboots for kernel upgrades). There's also nixos which I think has a pretty big userbase for server stuff? Really depends on where you are coming from / what you're aiming for. |
Beta Was this translation helpful? Give feedback.
-
|
If you’re not already using Docker, this might be a good time to pick it up. Right now you’re running With Docker, you gain determinism: you build a known, tested binary image, publish it, and you know exactly what version of your application and dependencies is running in production. No accidental Ultimately it comes down to how much you value deterministic builds, and having guarantees. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
So I decided to write my latest internet-facing thing in Rust. I figured Axum is among the popular choices. I got it up and running locally. Then I grabbed my Ubuntu instance, opened the ports, installed Rust, configured a Let's Encrypt certbot, did some other boring stuff, then ran
cargo run --release, and it worked!But that can't be working like this in production, right? What about security updates? What about certbot updates? Now, I can create some fragile cron job or systemd service to try and handle it by running
cargo updateand restarting it periodically, but there must be a better way. Any help is appreciated!Note that it's a hobby project, so losing existing connections after dependency updates or a cert update is acceptable (load balancer would be an overkill), but I also don't want to have too much of it - it's more than a toy I play with, it will have some users.
axum version
0.8.7
Beta Was this translation helpful? Give feedback.
All reactions