Appearance
3. Deploy & Cloud Environments
From Preview to Cloud (Dev/Staging/Prod).
Environment overview
Madrix supports three environments per project:
| Environment | Purpose | Access |
|---|---|---|
| Dev | Development and testing | Developers |
| Staging | Pre-production validation | QA / internal |
| Prod | Live application | End users |
How deployment works
- You develop and iterate in the Preview (local runtime, no deploy needed)
- When ready, Publish deploys to the selected Cloud environment
- Each environment is isolated (own database, own URL)
First deploy (step by step)
Prerequisites
- Your project is working correctly in the Preview
- Cloud environments are configured in your organization settings
- You have "Deploy" permission
Steps
- Open your project in the Project Editor
- Click Publish in the top bar
- Select target environment: Dev (recommended for first deploy)
- Review what will be deployed (schema, code, settings)
- Confirm and wait for deployment to complete
- Access the environment URL provided after deployment
- Test the app with real credentials
Environment promotion
Move your app from Dev → Staging → Prod when each stage is validated:
Dev (test) → Staging (validate) → Prod (release)Each promotion is a Publish action targeting the next environment.
Environment variables and secrets
Sensitive configuration (API keys, webhook URLs) is set per environment in Runtime Settings. See Runtime Settings for details.
Rollback
If a deployment causes issues:
- Go to Project Settings → Deployment History
- Select the previous stable version
- Click Rollback
Troubleshooting
- Deploy stuck: see Deploy Issues
- App down after publish: see Deploy Issues
Next: 4. Prompt Templates →