dancryer / PHPCI

PHPCI is a free and open source continuous integration tool specifically designed for PHP.
BSD 2-Clause "Simplified" License
2.42k stars 441 forks source link

Hot to setup the deployer for automatic deployment, plugin documentation isn't helping, what the webhook url supposed to do, how it will trigger the deployer? #1345

Open surajprgupta opened 6 years ago

surajprgupta commented 6 years ago

Before submitting your issue, please make sure that you've checked all of the checkboxes below.

To help us better understand your issue, please answer the following.

Expected behaviour

Please describe what you're expecting to see happen.

Actual behaviour

Please describe what you're actually seeing happen.

Steps to reproduce

If your issue requires any specific steps to reproduce, please outline them here.

Environment info

Operating System: PHP Version: MySQL Version:

Logs or other output that would be helpful

(If logs are large, please upload as attachment).

underthecocotree commented 6 years ago

To get the URL you need to login to deployer. Go to the project you want to run deployer. Go to Commands. (The commands that need to run when you deploy). Under the Commands tab you will find on the first line.

Deployments may be triggered by using the following webhook URL

Just copy the URL under the sentence above.

In phpci.yml

success:
  deployer:
    webhook_url: "URL_HERE"

This way on success phpci will call deployer via the webhook. You need to make sure that the webhook is accessible by your phpci server.