Requirements
- Rust 1.99+ installed locally
- Account on Vertra Cloud
- Configured
Cargo.toml
Project Structure
Configuration
Cargo.toml
vertracloud.config
Example: Actix-web Server
Deploy
- Dashboard
- CLI
- VS Code
- Compress the project into a
.zip(folders likenode_modules,venvandtargetare removed automatically) or push it to GitHub. - In the dashboard, click New Project and upload the
.zipor paste the repository URL. - In Build, check the runtime (Rust), the main file (
src/main.rs) and the memory. Start and build commands are under Advanced settings. - Add your environment variables in Environment.
- In Network, turn on web publishing so the app gets a
*.vertraweb.appaddress (512 MB of memory or more). The app must listen on port 80. - Review and deploy. Follow the output in the Logs tab.
Available Versions
Notes
- Automatic compilation: Rust is compiled inside the container during deployment
- Compilation time: May take 5-10 minutes depending on project size
- Environment variables: Use
std::env::var()to capture settings - Logging: Use the
logcrate for logs that appear in real-time - Memory: 512MB recommended during compilation, 256MB sufficient for runtime
- Listen on
0.0.0.0to accept external connections