This sample demonstrates how to deploy a very simple Rocket app. Rocket is a web framework for Rust.
- Download Defang CLI
- (Optional) If you are using Defang BYOC authenticate against your AWS account
- (Optional for local development) Docker CLI
To run the application locally, you can use the following command:
docker compose up
Note
Download Defang CLI
Deploy your application to the defang playground by opening up your terminal and typing defang up
.
If you want to deploy to your own cloud account, you can use Defang BYOC:
- Authenticate your AWS account, and check that you have properly set your environment variables like
AWS_PROFILE
,AWS_REGION
,AWS_ACCESS_KEY_ID
, andAWS_SECRET_ACCESS_KEY
. - Run
defang --provider=aws up
in a terminal that has access to your AWS environment variables.
Title: Rocket
Short Description: A simple Rocket app.
Tags: Rocket
Languages: Rust