Each server or group has what is known as a "Deploy Hook", this is a URL that you add to Codebase as a web hook so Deploy is notified when new commits are pushed to your repository and can start automatic deployments.
Getting the "Deploy Hook" URL for a server
- Firstly navigate to the "Servers and Groups" page via the Settings on a given Project page:
You can also access the page via the Servers box under a given project, inside the main Projects page:
Next head to the edit page for the server:
Adding the "Deploy Hook" to Codebase
- Open your repository up in Codebase (there's a shortcut at the top of Deploy labelled "Browse Repository") and click the Repository Settings icon.
- Enter the URL from the Deploy Hook box into the Post-Receive Hooks form (there's no need to add any authentication details).
- That's it! With this set up Codebase and Deploy will now work together to automatically push changes to your server.