deploy-to-hosting
Installation
SKILL.md
Deploy to hosting
Ship a project that already exists — on disk or in a Git repository — to a Hostinger website. Building a new site from a prompt (design, store, blog) is the hostinger-headless skill; this one takes code as it is.
Calling the operations
- Read the
inputSchemathatsearchreturns before the first call of each operation. If a name below is rejected as unknown,searchfor what the step does (e.g. "deploy static"). - Batch reads with
multi-execute; values pass between steps as$steps.<i>.<path>. Batches chain operations from one server only — the Hostinger Connector runshosting,wordpressandagency-hostingas separate servers. - Every deploy overwrites the website's current contents. Confirm the target domain with the user before the first deploy to a site that already has content.
1. Pick the target website
.hostinger/site.jsonin the project: reuse itsdomainandusername(orwebsite_uid).- Otherwise look the domain up with
hosting_websites_list(Shared and Cloud; substring match — take the exact entry) andagency-hosting_websites_list-plan(Agency; keepdetails.uid). - No website yet:
- Shared and Cloud: take a domain (the user's own, or
hosting_domains_generate-free-subdomain) and anorder_idfromhosting_orders_list, thenhosting_websites_create.datacenter_codeis needed only for the first website on a new plan (first entry ofhosting_datacenters_list). Pollhosting_websites_list-setupswithdomainevery 10–15 s untilstatus: completed— uploads and deploys return 404 or 409 before that. - Agency:
agency-hosting_website-setups_createwithflavor: "php-fpm"(plustype: "node-static"for built frontends),settings.php.versionfromagency-hosting_php_list-versions-for-orderanddatacenter_codefromagency-hosting_datacenters_list. Pollagency-hosting_website-setups_statusuntilcompleted; it returns thewebsite_uid.
- Shared and Cloud: take a domain (the user's own, or
- Node.js apps run on Business and Cloud plans (
hostinger_business_*,cloud_*inhosting_orders_list). On other plans, build locally and deploy the output as a static site.