How do I copy an existing project?
DeployHQ doesn't have a one-click Duplicate project button. To start a new project from the configuration of an existing one, create a template from it and build the new project from that template. If you only need another copy of a server, you can duplicate that server directly.
Copy a project's configuration with a template
- Go to the Templates tab at the top of the screen and click New Template.
- Enter a name for the template, tick Copy configuration from an existing project? and choose the project to copy from.
- Click Create Template. You'll see an overview of every element copied into the template, which you can edit before using it.
- Click New Project From Template, or choose the template from the Template dropdown on the new project screen.
- Add the new project as normal and configure its repository. The template's elements are added automatically, and you can remove any you don't need.
A template can hold servers and groups, config files, excluded files, notifications, SSH commands, cached build files, build commands and known hosts. Your repository connection isn't part of a template, so you'll connect the new project's repository in step 5.
Global SSH commands, global build commands and global config files aren't copied into a template. Link them to the new project from its own pages.
The template is a separate copy. Editing it later doesn't change projects that were already created from it. See Using Templates in DeployHQ for more.
Duplicate a server
To make another copy of a server inside a project, click the Duplicate button in the project's server list and edit the copy. See adding a server.
If you need the same server in many projects, a global server lets you define it once at the account level and add it to any project.
Moving a project to another account
Copying a project isn't the same as transferring it. To move a project between accounts, see How do I transfer my DeployHQ project to another account?