Step 3 – Webhook Setup – Github

December 11, 2016

Next step is to setup the hooks on Github and Bitbucket in order to make them send you the code when you commit the files.


The process is as follows:

  1. Access your repository;
  2. go to Settings;
  3. Webhooks;
  4. Add Webhook;
  5. Set Payload URL as the link to your deploy.php file, i.e.:
  6. Set Content Type as: application/json
  7. Set to Send me everything
  8. Active the event details;


Next you just need to commit to the repository that Github will send the POST hook to the deploy.php file that will put the files on the server.