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
- 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 (
main.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
- 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.