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
- 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 (Python), the main file (
app.py) 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
- 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 the port in the
PORTenvironment variable and host0.0.0.0