Production deploy on Zenifra
This guide connects the recommended path from a new account to a production-ready application. Use it when you need deploy, database, observability, domain, and billing in a single flow.
Prerequisites
- active account on Zenifra
- available credit or a card configured for automatic charges
- GitHub, GitLab, or Forgejo repository, or OCI image ready to publish
- known start command, such as
npm start,uvicorn main:app --host 0.0.0.0 --port 8000, or equivalent - HTTP port where the application actually listens
Important: Zenifra routes traffic to the port configured in the project. The application must listen on that same port.
Step 1: prepare the application
Before creating the project, confirm locally that the application starts without missing files.
For Node.js, prefer reading the port from an environment variable:
const PORT = process.env.PORT || 3000;
app.listen(PORT, '0.0.0.0');For Python with FastAPI, use an explicit start command:
uvicorn main:app --host 0.0.0.0 --port 8000If the application uses a database, queue, or external services, list the required variables before deployment. Do not commit passwords, tokens, or keys to the repository.
Step 2: choose Git repository or OCI image
Use Git repository (GitHub, GitLab, or Forgejo) when you want Zenifra to build from source code. This path works well for applications that change frequently and can benefit from Automatic by branch mode.
Use OCI Image when you already have a ready image generated by an external CI pipeline, or when you want to control the production artifact by tag.
| Source | Best for | Attention |
|---|---|---|
| Git repository | Teams publishing from source code | repository, branch, build settings, and deployment mode can be changed later |
| OCI image | Pipelines that already generate Docker images | use immutable tags to track versions |
Step 3: create the HTTP project
In the console, click Create project and fill in:
- organization where the project will be created
- project source
- runtime or image
- HTTP port
pre-build,build, andstartcommands when the source is a Git repository- environment variables
- plan, instances, and storage according to the workload
After creation, open the *.clients.zenifra.com URL and validate a simple route, such as / or /health.
Step 4: connect the database
If the application uses PostgreSQL, MariaDB, Analytics (ClickHouse), or Valkey (Key-Value, Cache, and Queues), create the managed service and copy the connection details from the console. Connections require TLS.
Zenifra does not automatically inject DATABASE_URL into the HTTP project. The correct flow is:
- create the database
- copy the full URI from the console
- manually configure
DATABASE_URLin the HTTP project - restart or redeploy the application if needed
- validate the connection through logs and an application route
For engine, replica, storage, and failover details, see Database.
Backup: managed databases have automatic backups included in the plan, with restores done by support (see Automatic backups). Before going to production, also keep your own dump or export routine (for example,
pg_dumpormysqldump) as an extra layer and test the restore.
Step 5: validate logs, metrics, and version
After deployment, check:
- application logs
- build logs, when available
- CPU, RAM, and storage
- number of HTTP requests received by the application
ZENIFRA_INSTANCE_VERSION, when used by your code
Application logs are available on every plan; metrics, from the Premium plan. In the Recent tab, logs are read live from the instances, with no stored history. To keep logs, turn on Log history, which saves the files to the organization's Armazém. For details, see Observability.
In Git projects, open the Deploys tab of the project page to follow dependency installation, pre-build, build, and publish steps. Use application logs separately to investigate failures after start.
Step 6: configure domain and access
Every project receives a Zenifra URL. For production, you usually also configure a custom domain.
Before sending real traffic:
- configure DNS at the domain provider
- validate propagation
- keep the Zenifra URL as an operational fallback
- review IP whitelist and blacklist for administrative or internal projects (from the Premium Plus plan)
Step 7: validate the deployment mode
If Automatic by branch is selected, make a small change on the configured branch and push it. To validate the tag and release options, follow the GitHub Deployment or Forgejo Deployment guide.
Validate:
- new build started
- build logs have no errors
- application responds on the public URL
- new version is visible in logs or in a diagnostic route
In Manual, By Tag, and By Release modes, a branch push does not start an automatic update.
Step 8: monitor billing
Before keeping the project in production, review:
- project billing mode
- available credit
- credit card as billing fallback, when configured
- database and persistent storage cost
- AI consumption, if the application uses Zenifra models
For credit, monthly, yearly, and hourly rules, see Payment Models.
Availability and SLA
The Service Level Agreement sets the monthly availability target for each project:
- HTTP application or managed database with 1 instance: 99% monthly availability; with a single instance, the project may restart on another server when a platform server fails
- HTTP application or managed database with 2 or more configured instances: 99.5% monthly availability; if a platform server goes down, the other instances stay online
For an application that cannot stop, configure 2 or more instances in the HTTP project and in the database. Projects on the legacy free plans (Free, DB-Free, Cache-Free, and Queue-Free), available only to organizations that already received the free plans, are not covered by the SLA. The platform availability history is at status.zenifra.com.
Next steps
- Checklist before production
- GitHub deployment
- OCI image deployment
- Security, privacy, and reliability
- Limits and quotas
FAQ
Can I use Zenifra in production?
Yes. Use this guide with the deployment, database, observability, security, and limits pages to validate whether the plan and configuration fit your scenario.
Do I need to configure DATABASE_URL manually?
Yes. Managed databases show connection details in the console, but the HTTP project must receive DATABASE_URL manually as an environment variable.
How do I know the new deploy is live?
Use logs, metrics, the public URL, and a version identifier such as ZENIFRA_INSTANCE_VERSION or a /health route that exposes the application version.
Last updated on
Organization logs
Search the logs of every application in your organization from the console, by text or request_id, with filters and CSV or JSON export, for the last 7 days.
Checklist before production
Checklist before production on Zenifra: review the application, deployment, variables and secrets, database, observability, security, access, and billing.