Project configuration

Connect a Git repository, manage its deployment key and repository cache, and find your way around a project.

A project is one Git repository and everything needed to deploy it: its servers and stacks, its SSH and build commands, and the history of its deployments. Create one project per repository.

Create a project
  1. Repository location. From Projects, choose Create project and pick where the repository is hosted: GitHub, Bitbucket, GitLab, or custom for any other Git server.
  2. Repository access.
    • For GitHub, Bitbucket and GitLab, connect your account when asked, then choose the repository from the list (use the search box for long lists). Donkey adds the project's deployment key to the repository for you.
    • For a custom host, name the project, choose the protocol and enter the repository URL. With SSH, open View key and add that key to the repository as a read-only deploy key. With HTTPS, enter a username and password that can read the repository.
  3. Create. Donkey checks it can read the repository and keeps a copy of it, the repository cache. The project is ready once caching has finished.
If Donkey can't add the deployment key itself, usually because your account isn't an admin of the repository, it says so. Add the key by hand in the repository's deploy key settings and try again.
The deployment key

Each project has its own SSH key pair. The public half, the deployment key, gives Donkey read access to the repository. The same key logs in to servers that use key based authentication (see Servers & Stacks).

  • To see it, open the project's menu and choose Deployment Key.
  • To replace it, choose Regenerate Deployment Key. The old key stops working immediately. For repositories connected through your GitHub, Bitbucket or GitLab account, the new key is added for you; remove the old one from the provider yourself. Otherwise add the new key to the repository, and to any server that used the old one, before you deploy again.
  • Regenerating is unavailable while a deployment or job is running or scheduled.
The repository cache

Donkey deploys from its own copy of the repository, so it can work out the changed files between two commits without asking your Git host each time.

  • After a long period without deployments the cache expires and the project shows Your project needs recaching. Recache it to carry on; a large repository can take a while.
  • If branches or commits you pushed don't show up, choose Recache Repository from the project's menu.
  • A project can't be edited or deleted while it is recaching.
Inside a project

The project's menu leads to its pages. Which ones you see depends on your permissions.

Servers & StacksWhere the code goes. See Servers & Stacks.
DeploymentsEvery deployment of the project, with its log. Shown once there is one.
SSH CommandsCommands run on the servers around each deployment. See SSH Commands.
Build CommandsCommands run on Donkey's servers before the upload, with the cache and file rules. See Build Commands.

Build commands, file rules and SSH commands can also live in the repository. See Donkeyfile.

Edit, logo and favourites
  • Edit from the project's menu changes its name and repository. If you point the project at another repository, its branches may differ: servers set to a branch the new repository doesn't have can't be deployed until you change them.
  • Click the project's logo to upload or choose another one.
  • The star next to the project's name adds it to your favourites.
Delete a project

Delete from the project's menu removes the project with its servers, stacks, commands and deployment history. Nothing already deployed to your servers is touched. You'll need the permission to edit or delete projects.

Still need help?

Tell us what you are trying to do and we will reply by e-mail.

Contact support