PHPCI icon indicating copy to clipboard operation
PHPCI copied to clipboard

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?

Open surajprgupta opened this issue 7 years ago • 1 comments

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

  • [ ] You're running the latest release version of PHPCI.
  • [ ] Ensure that you're running at least PHP 5.3.6, you can check this by running php -v
  • [ ] You've run composer install --no-dev -o from the root of your installation.
  • [ ] You have set up either the PHPCI Worker, Daemon or Cron Job to run builds.

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).

surajprgupta avatar Oct 30 '17 10:10 surajprgupta

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.

underthecocotree avatar Nov 13 '17 12:11 underthecocotree