Requirements
- Python 3.x installed locally
- Account on Vertra Cloud
requirements.txtfile at project root
Project Structure
Configuration
requirements.txt
List all project dependencies:The platform automatically runs
pip install -r requirements.txt. Do not include venv or __pycache__ in the upload.vertracloud.config (Optional)
Example: Discord Bot (discord.py)
Example: Flask API
Deploy
- Via Dashboard
- Via GitHub
- Exclude
venv,.cacheand__pycache__from the project - Compress into a ZIP file
- Access Dashboard → New Project → Application
- Select Python language and upload
- Configure memory and Python version
- Click “Create Application”
Available Versions
| Version | Status | Description |
|---|---|---|
| 3.13 | Recommended | Python 3.13 LTS (recommended for production) |
| 3.13 | Latest | Python 3.13 (latest version) |
| 3.12 | Stable | Python 3.12 with extended support |
| 3.11 | Legacy | Python 3.11 with limited support |
Notes
- Dependencies are automatically installed via
pip install -r requirements.txt - For Discord bots, set the token as environment variable
DISCORD_TOKENin the dashboard - For web APIs, listen on port
PORTand host0.0.0.0 - Poetry and pipenv are not natively supported; use
requirements.txt
Common Issues
ModuleNotFoundError
ModuleNotFoundError
Check if the module is listed in
requirements.txt with the correct version.SyntaxError: invalid syntax
SyntaxError: invalid syntax
Make sure you are using the correct Python version. Python 3.10+ code may not work on earlier versions.
Bot doesn't connect to Discord
Bot doesn't connect to Discord
Check if environment variable
DISCORD_TOKEN is configured in the application’s environment variables.