Deployment Guide
Sarus is a Dart server framework designed for production-ready backend applications.
It provides a simple command to build your app and generate all necessary files for Docker deployment.
Build your server
Create a production build:
sarus build
This will:
- Generate a
build
folder containing your server code. - Create a
Dockerfile
for easy deployment. - Compile your Dart server to a native executable
Run locally (development mode)
Test your production build locally:
sarus dev
The build
folder is now served at http://localhost:8080/.
Deploy your server
Once you have the build/
directory, you can test and deploy with Docker:
Testing Locally with Docker
cd build
docker-compose up --build