Speedrun
First, install flyctl, the Fly.io CLI, and sign up to Fly.io if you haven’t already. The fastest way to get a basic Actix Web server on Fly.io is to use our actix-web template:Deploy an Actix Web App from scratch
If you don’t already have an existing Actix Web application, you can create one withcargo:
actix-web dependency to the project:
src/main.rs:
8080.
We can confirm everything works fine by running cargo run and checking out http://localhost:8080.
And with that you can deploy the app!
fly.toml file with the configuration for your app and a Dockerfile that uses cargo chef.
Refer to the fly.toml docs for more configuration options.
To deploy a new version of your app, simply run fly deploy in the project directory.
You can check out the full (yet minimal) example in this GitHub repository for a reference.