Deployments

Deploy script

Get deploy script from a site

GET api/servers/{server}/sites/{id}/deploy/script

Example request:

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

Update deploy script

Update deploy script from a site

PATCH api/servers/{server}/sites/{id}/deploy/script

Example request:

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

Deploy a site

Deploys a site, remember that a deploy will not be done if there is no repository installed.

POST api/servers/{server}/sites/{id}/deploy

Example request:

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