https://github.com/dxrcy/axum-fly-example
Minimal Fly.io deployment of a basic Axum web server
https://github.com/dxrcy/axum-fly-example
Last synced: 2 months ago
JSON representation
Minimal Fly.io deployment of a basic Axum web server
- Host: GitHub
- URL: https://github.com/dxrcy/axum-fly-example
- Owner: dxrcy
- Created: 2024-03-07T01:57:18.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-03-07T02:01:03.000Z (about 1 year ago)
- Last Synced: 2025-03-15T08:37:16.333Z (3 months ago)
- Language: Rust
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Axum Fly Example
Minimal Fly.io deployment of a basic Axum web server .
## Usage
Clone the repository.
```sh
git clone https://github.com/dxrcy/axum-fly-example
cd axum-fly-example
```Install the Fly.io CLI.
Create and log into your Fly.io account if not already.```sh
fly auth login
```Create a new app.
```sh
fly launch
```Change all instances of `axum-fly` to the name you chose for your fly.io app
```sh
cargo build --release --target x86_64-unknown-linux-gnu &&\
fly deploy
```Check if it works.
```sh
fly logs
curl https://{NAME}.fly.dev/ -v
```