Getting Started

This page walks you from a fresh installation to a site that deploys every time you push to GitHub. It assumes you've finished the installation steps and can sign in.

How it fits together

  • A project is one branch of one Git repository, deployed on your server. The app keeps its own copy of that branch in its storage folder.
  • A repository record is created for each Git repository you deploy from. It holds the deploy key and the webhook secret, so every project on that repository shares them.
  • A deploy brings the project's copy up to date with the branch, then writes its .env file, points your site's folders at it with symlinks and runs your build commands.

Your site's document root becomes a symlink into the project's copy. Each deploy updates the files in place, so the site serves the new version as soon as the deploy finishes.

Your first deploy

  1. Create a project

    On the Projects page, choose Create new project. Enter the repository's address and the branch to deploy, which defaults to main. For a public repository, the HTTPS address from GitHub works, such as https://github.com/you/site.git. For a private one, use the SSH address, such as git@github.com:you/site.git. See Projects.

  2. Give the app access to a private repository

    Skip this for a public repository. Otherwise, open the project's Settings, choose Generate Deploy Key, and add the public key it shows to the repository's Deploy keys on GitHub. See Deploy Keys.

  3. Add environment variables and build commands

    Optional. If your site reads settings from a .env file, add them under Environment Variables in the project's Deployment tab. If it needs a build step, such as composer install --no-dev or npm ci && npm run build, add it under Post-Deployment Commands. The app writes the file and runs the commands on every deploy, starting with the clone in step 5. See Environment Variables and Commands.

  4. Point your site at the project

    In the Deployment tab, under Symlink Mappings, choose Add Mapping. The source is the folder in your repository that should be public, such as public, or . for the repository root. The destination is your site's document root, as an absolute path, such as /home/you/example.com/public_html. The form prefills a path next to the app's own folder, so replace it. The destination has to be empty or missing, so move any files your host put there out of the way first. To have the project's Overview link to the site, add its address under URL.

    The app saves the mapping now. When it clones the repository, it replaces the destination with a link into the project. See Symlinks.

  5. Clone the repository

    On the project's Overview, choose Clone Repository. This is the first deploy: the app downloads the branch into its storage folder, then applies what you set up in steps 3 and 4, so your site goes live already built.

    Check the project's Logs afterwards, even when the status says Cloned: a symlink or command that failed doesn't change the status.

  6. Deploy on every push

    In the project's Settings, Webhook Setup shows a payload URL and a secret. Add them as a webhook in the repository's settings on GitHub, with the content type application/json. From then on, each push to the branch deploys the project. See Webhooks.

To deploy by hand at any time, choose Pull Latest Changes on the project's Overview.

When something fails

Every deploy writes a log, which you'll find in the project's Logs tab. It records every Git command, symlink and build command along with its output, so the reason for a failure is usually in the last few lines. If the log points at your host, open Diagnostics from the main menu: it checks what the app needs from your server and says what each failed check affects. See Logs and Troubleshooting.