By jesscjohnson
Is there a way to re-deploy an app via a URL?
Basically, I need a way to redeploy an app without having to log into DO’s Platform App Dashboard and clicking the Deploy button, or by making code changes to the repo attached to the app.
Similar to:
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Currently you can trigger a deployment by making a call to our API to create a new deployment.
For example:
curl -X POST -H "Content-Type: application/json" -H "Authorization: Bearer b7d03a6947b217efb6f3ec3bd3504582" "https://api.digitalocean.com/v2/apps/{app_id}/deployments"
Our doctl commandline tool can also be used to trigger a new deployment:
doctl apps create-deployment <app id>
Thanks for linking those documents, I will take this back to the team and see if we can plan out a feature for offering a webhook like implementation to make this easier.
Happy hacking!
Thanks @crashoverride! That’s very helpful.
Offering a web hook would be a great feature addition for folks that can’t use that API/doctl, but this way works enough for my use case.
Cheers
Triggering a deployment works fine but it re-deploys all components. Is there any option to trigger the re-deployment of a specific component?
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.