Deploy repository

Deploy a WordPress sub-repository.


POST/api/servers/{server}/sites/{id}/wordpress/repositories/{repository}/deploy

Deploy repository

Runs the deploy script for the specified repository. This typically pulls the latest changes from Git and runs any additional commands defined in the deploy script. Not instant - the deployment is processed in the background.

Request

POST
/api/servers/{server}/sites/{id}/wordpress/repositories/{repository}/deploy
curl -X POST "https://ploi.io/api/servers/{server}/sites/{id}/wordpress/repositories/{repository}/deploy" \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json"

Response

{
  "status": "ok",
  "message": "Deployment started."
}