Requirements
- Python 3.11+ installed locally
- Account on Vertra Cloud
requirements.txtfile at project root
Project Structure
Configuration
requirements.txt
The platform automatically runs
pip install -r requirements.txt. Do not include venv or __pycache__ in the upload.vertracloud.config
Example: REST API with Flask
Deploy
- Via Dashboard
- Via GitHub
- Via VSCode
- Exclude
venv,.cacheand__pycache__from the project - Compress into a ZIP file
- Access Dashboard → New Project → Application
- Select Python language and upload
- Configure memory (256MB for simple APIs, 512MB+ for APIs with database)
- Click “Create Application”
Available Versions
Notes
- Production server: Use
gunicorninstead ofapp.run()for production - Environment variables: Configure database credentials in the dashboard
- Database dependencies: Use
psycopg2-binaryfor PostgreSQL - Logs: Available in real-time in dashboard terminal
- Auto-restart: Enabled by default to restart on crash
- Always listen on port
process.env.PORTand host0.0.0.0