Prerequisites
- A Zerops account
- Basic knowledge of Python
Deploy from Recipe
The fastest way to get started is to deploy our ready-made Python example:Import the Project
Log in to Zerops GUI and click Import a project.
Deploy Your Own Python Application
Step 1: Add zerops.yaml
Create azerops.yaml file in your repository root:
Step 2: Create requirements.txt
List your dependencies:Step 3: Configure Your Service
- Using zCLI
- Using GUI
Create a Import the project:
description.yaml:Step 4: Deploy Your Code
Connect your repository and deploy:Framework Examples
FastAPI Application
Create a simple FastAPI app:app/main.py
zerops.yaml
Django Application
zerops.yaml
Flask Application
app.py
zerops.yaml
Adding a Database
Extend your project with PostgreSQL:description.yaml
Environment Variables
Set environment variables inzerops.yaml:
Installing System Dependencies
For packages requiring system libraries:Using Poetry
If you prefer Poetry for dependency management:Troubleshooting
Build fails with pip errors
Build fails with pip errors
Make sure your
requirements.txt is properly formatted and all packages are available on PyPI.Try installing with verbose output:Application doesn't start
Application doesn't start
Check your start command and ensure the port matches:
Module not found errors
Module not found errors
Ensure all dependencies are in
requirements.txt and the build completes successfully:Import errors in runtime
Import errors in runtime
Make sure you’re deploying the correct files:
Next Steps
Runtime Overview
Learn about Python runtime features
Environment Variables
Manage secrets and configuration
Scaling
Configure auto-scaling
Monitoring
Monitor your application