# Deploy from zip and Git

> Deploy to a Zopanel for Windows site from a zip or from GitHub and GitLab: immutable releases, health checks, rollback and database migrations.

Source: https://zopanel.net/windows/docs/deploy  
Updated: 2026-11-27

The **Deploy** tab puts new code on a site without FTP. Each deploy becomes an immutable release; the site switches to it only when it is healthy, and you can roll back.

## Deploy a zip

1. Open the site → **Deploy**.
2. Upload a zip, or give an HTTPS link to one. Archives with paths that escape the folder, links or junctions are refused.
3. The panel unpacks it into a new release, runs the health check and switches the site to it.

The last 5 releases are kept, and rolling back switches to an older one at once. Status: available.

## Deploy from Git

Supported hosts: **GitHub** and **GitLab** (limited). Gitea, Codeberg and Bitbucket Cloud are experimental.

1. In the **Deploy** tab, connect a repository: choose the host, the repository and the branch. The panel reads it through the host's API with a token you give it; the token is sealed and never shown again.
2. Add the webhook the panel shows to the repository. Webhooks are signed; a delivery the panel has already handled is not deployed twice.
3. Each push to the branch builds a release, checks it and switches the site.

## Builds

Build commands (for example `npm ci && npm run build`) run under a separate build account for each site, with CPU and memory limits, and network access only to package registries through the agent. Status: limited (tested on Server 2022 and 2025).

## Database migrations

A deploy can run the app's migration step before the switch: Django, Alembic, Prisma, Knex, an Entity Framework bundle, Artisan for Laravel, or your own command. If the migration fails, the release is not switched in and the site stays on the old one. Status: limited.

## Blue-green

For Node.js, .NET and Python apps, a second slot can start the new release beside the old one and take traffic only after its health check passes. Status: limited.

## Preview sites

A separate site for each branch or pull request, under a wildcard domain of the provider, is experimental.

## Web Deploy and FTP

Visual Studio users can publish with Web Deploy ([ASP.NET](/windows/docs/aspnet)); FTPS and SFTP are in [FTP and SFTP](/windows/docs/ftp). These copy files directly, without releases or rollback.
