ServerAvatarDocs
Applications

Deploy from Git

Create an application from a GitHub, GitLab or Bitbucket repository, or from any public repository URL. Choose a rendering type, a build command and a deploy script.

From Git repo clones your own code onto the server and serves it. It is the only type where the panel does not know what it is installing, so the form asks the questions it cannot guess: where the code comes from, and how it should be served.

Open Applications → Create application, choose From Git repo in the grid (it is under Popular and Development), then fill in Application details as for any other application. The rest of this page is the Add details step of that form.

1. Choose the source

Source has two choices.

The Add details step for From Git repo: Source with Use a connected account and Use a public repository URL, Git account, Repository, Branch, and Rendering type

  • Use a connected account ("Pick from the repositories your connected account can see.") lists the repositories of a connected GitHub, GitLab or Bitbucket account, private ones included. Pick the Git account, then the Repository, then the Branch. Connect an account first under Integrations → Git: until you do, the form says "No Git account connected yet." with a Connect Git link. Refresh next to a picker reloads its list.
  • Use a public repository URL ("Paste any public repository URL. No credentials needed.") takes a Repository URL, such as https://github.com/octocat/Hello-World.git, and a Branch.

Private repositories need an account

A public URL is cloned anonymously, so it cannot reach a private repository: use a connected account for those. The URL must be an https:// address, and the form drops a username before an @ ("The username before @ will be dropped — it is not needed for a public repository.").

Branch is required for both choices.

2. Choose a rendering type

Rendering type is required and has no default, on purpose. It decides which fields the form shows next.

The Rendering type list: PHP application (Laravel, Symfony, plain PHP), Server-side rendering (runs a process), Client-side rendering (built to files) and Static application (built to files)

OptionWhat the server does
PHP application (Laravel, Symfony, plain PHP)Serves the repository through PHP-FPM, like any other PHP site.
Server-side rendering (runs a process)Starts your app as a long-running process and proxies to it.
Client-side rendering (built to files)Runs a build, then serves the output as static files.
Static application (built to files)Serves the repository as static files, with an optional build.

The hint under the field puts it like this: "PHP runs your code through the server's PHP. Server-side rendering runs your app as a process and proxies to it. Client-side rendering and static are built to files the web server hands out directly — faster, and nothing to keep running."

Getting it wrong is not cosmetic. A Node app served as a directory publishes its source, and a PHP app served by proxy is a permanent 502.

The list only offers what the server can serve: on a server that has no PHP (the mern stack) PHP application is not offered. See what your server can host.

3. Fill in what that choice reveals

A PHP application shows the PHP version picker and no Node fields. Server-side rendering and Client-side rendering show the Node fields:

The Git form with Server-side rendering selected, showing Node.js version, Package manager, Start command, App port and Advanced settings

FieldNotes
Node.js versionOptional. Left unset, the build and the process run on whatever node the server resolves. Refresh picks up a version you just installed.
Package managerRequired. npm (the default), Yarn, pnpm or Bun. Choosing one fills in the Build command below. "What installs and builds your dependencies. Fills in the build command below — edit it freely afterward."
Start commandServer-side rendering only, and required, up to 500 characters. The entry file, for example node server.js.
App portServer-side rendering only. A number from 1024 to 65535 that is free on the server. Left empty, the panel picks a free one ("Left empty, the panel picks a free one.").

A Static application has none of these.

Not npm start

The form is explicit: "The entry file, for example "node server.js". Not "npm start" — a package manager forks the real process, so shutdown signals never reach it." The panel refuses a start command that begins with npm, yarn, pnpm, bun or npx ("Start the app with its entry file, for example "node server.js", not with npm.") and one that contains shell syntax: the command is run directly, not through a shell.

4. Build and deploy commands

Advanced settings holds Web root and the two commands that run on every deploy.

Advanced settings expanded: Web root set to /, a Build command filled in with npm ci and npm run build --if-present, and an empty Deploy script

FieldNotes
Web rootThe folder inside the repository that the web server serves. / is the repository itself. A framework that serves out of a subdirectory needs it set: /public for Laravel, the build output folder for a client-side rendered app.
Build commandUp to 500 characters. Runs after the code is fetched. The package manager fills it in: npm ci then npm run build --if-present for npm, with the matching lines for Yarn, pnpm and Bun. For PHP, something like composer install --no-dev.
Deploy scriptUp to 65,535 characters. Runs after the code is fetched, as your application's system user and on the application's own PHP version. "Leave empty to use the build command." If you fill it in, the build command is not run: the field then says "This will not run — the deploy script replaces it."

Both are offered at creation rather than only on the Deployment screen afterwards, because the first deploy runs automatically as soon as provisioning finishes, and for anything with migrations that first deploy decides whether the site works at all.

After it is created

The first deploy runs on its own. Everything afterwards lives on the application's Deployment screen: deploying again, the deploy history, the branch and script, and a webhook so a push redeploys the site.

Limits

  • Start command: 500 characters, required for server-side rendering only.
  • App port: 1024 to 65535, and not in use.
  • Build command: 500 characters. Deploy script: 65,535 characters.
  • Repository URL: up to 255 characters, https://, and a host the panel accepts.
  • Rendering type and Node on a PHP stack. Node applications can be deployed from Git on any stack except docker: the rendering type belongs to this application type, not to the server's stack.
  • A connected Git account is per panel, not per application. Connect it once under Integrations → Git.

Who can do this

Creating an application needs the Applications permission at Manage. See Create an application.

On this page