Deployment
Local Development
pip install -e .
moiss run examples/sepsis_workup.moiss -v
API Server
pip install -e ".[api]"
uvicorn api:app --host 0.0.0.0 --port 8000
POST to /run:
{
"code": "protocol Test { input: Patient p; assess p for sepsis; }"
}
Docker
cd deployment
docker-compose up --build
Cloud Deployment
Railway (Free Tier)
- Push to GitHub
- Go to railway.app → "New Project" → "Deploy from GitHub"
- Select your repo
- Set start command:
uvicorn api:app --host 0.0.0.0 --port $PORT
Render
- Push to GitHub
- Go to render.com → "New Web Service"
- Connect repo
- Build command:
pip install -e ".[api]" - Start command:
uvicorn api:app --host 0.0.0.0 --port $PORT
See Also
- API Reference — REST API endpoints to deploy
- Getting Started — local setup before deployment
- CLI — CLI usage in production environments