# Hostinger hPanel CI/CD: Releases, Rollback, Dev + Prod

> Set up real GitHub-to-Hostinger CI/CD with Claude Code: tests before deploy, a new release folder per deploy, instant rollback, a dev site, DB backup and smoke tests. Claude prechecks, asks, builds and rehearses; you get exact steps for the rest.

Hostinger hPanel CI/CD: Releases, Rollback, Dev + Prod is a paid AI agent skill on Agensi by Md Irfan Ali, in DevOps & Cloud. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $9 (one-time purchase)
- Creator: [Md Irfan Ali](https://www.agensi.io/creators/md-irfan-ali)
- Category: [DevOps & Cloud](https://www.agensi.io/skills/devops-cloud)
- Version: 1.0
- Last updated: 2026-11-25
- Security: scan passed (2026-11-25); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/hostinger-hpanel-ci-cd-releases-rollback-dev-prod
- Tags: devops, prompt-engineering, api, hostinger, hpanel, ci-cd, github-actions, laravel

## About this skill

Deploying to Hostinger shared hosting usually means manual zip uploads or a "Git integration" that copies files straight into `public_html`, with no tests, no rollback and no staging site.

This skill sets up a **proper pipeline** on the hosting you already pay for, and Claude does the work with you, one safe step at a time.

### What you get

- **Tests before every deploy.** Pushes to `dev` and `main` run your tests first; nothing deploys if they fail.
- **A new release folder per deploy** with an atomic switch of a `current` symlink. Rollback means repointing one link.
- **Dev + production.** The dev site has its own database, sends no real email, is `noindex`, and can be password protected.
- **Database dump before every migration** (last 10 kept), then migrate.
- **Smoke test with automatic rollback.** A release that fails the check is never switched in. A broken release is removed and the live site is untouched.
- **Secrets stay on the server** (`shared/.env`), never in Git or in your chat.
- **A manual for your own project** (`docs/CICD.md`) with diagrams, daily flow and rollback commands.

### How it works

1. **Precheck.** Claude inspects your repo. You run one *read-only* command on your server (it prints no secrets and masks your username). Claude explains what it found: existing SSH keys, a live site, `.htaccess` rules, other sites on the account.
2. **Decide.** Claude asks the real design questions with recommended defaults. It never guesses what a command can tell it.
3. **Generate and rehearse.** Claude renders the workflows, deploy scripts, env templates, smoke checks and docs, then **rehearses a full deploy locally** on simulated server folders. It will not hand you a failing rehearsal.
4. **Hand off.** For what Claude cannot do (GitHub settings, hPanel, your server, secrets, pushes) you get numbered steps with exact commands, the expected output, and what to paste back.
5. **Verify.** A checklist and an honest status: tested locally / confirmed on your server / still pending.

### Verified, not just claimed

The full rehearsal is run automatically on a **fresh install of Laravel 8, 9, 10, 11, 12 and 13** (each with a PHP version it supports), plus a static-site test and shell/YAML lint. The server-side steps (keys, secrets, release and switch) have been run on a real Hostinger account.

### What it needs

- Hostinger shared or Business hosting with **hPanel and SSH enabled**
- A GitHub repository you administer (to add a Deploy key and Secrets)
- Claude Code (tested). Other agents are untested; without the AskUserQuestion tool the skill asks in a numbered list

### Supported

| Project | Support |
|---|---|
| Laravel 8 to 13 (Composer, MySQL) | Full templates, rehearsed in CI per version |
| Plain PHP with a dedicated public folder | By configuration |
| Static site served from a committed folder | By configuration |
| WordPress, Node.js hosting, VPS / Cloud with root | Not covered |

### License

Use it for your own projects and for your clients' projects, personal or commercial. You may not resell, share or redistribute the skill itself. Future updates are included.

### Honest limits

- Early release (v0.2). Hostinger plans differ, so the skill starts with a precheck instead of assuming.
- Rollback does not undo database migrations; dumps are kept for that.
- Shared hosting has no document-root control, so it uses an `.htaccess` rewrite and symlinks (explained in the docs).
- Some steps can only be proven on your own server. The skill tells you which ones and asks for your output.

Independent product, not affiliated with Hostinger or Anthropic.

## Requires

- Git
- Python 3
- PHP and Composer (Laravel projects, for the local rehearsal)
- GitHub repository you administer
- Claude Code
- Node.js
- Optional: MySQL database created in hPanel (apps with a database)
- Optional: Mailbox in hPanel (apps that send email)
- Optional: Dev subdomain (for the dev/staging site)

Hostinger shared hosting with hPanel and SSH. On Windows, run it from Git Bash or WSL (the scripts are bash). You run every server command yourself; Claude never logs in to your server and never needs your passwords.

## Known limitations

Early release. Laravel 8 to 13 are verified end to end in automated tests; plain PHP and static sites work by configuration. Not for WordPress, Node.js hosting or VPS/Cloud with root access. Needs hPanel with SSH. Composer scripts are skipped because Hostinger disables proc_open. Rollback does not undo database migrations. Some steps can only be proven on your own server.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Hostinger hPanel CI/CD: Releases, Rollback, Dev + Prod skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this avoid breaking my live site during a deploy?

Each deploy builds in a new release folder and then switches one symlink, which is atomic. A release that fails the smoke test is never switched in and its folder is removed. If the live check fails after the switch, it rolls back to the previous release automatically. Database migrations are not undone, so a dump is taken before each migration.

### What is included, and which AI agents does it work with?

You get the skill (SKILL.md and reference guides), a local and a read-only server precheck, the renderer, a local rehearsal of the whole deploy, and templates for GitHub Actions, deploy scripts, env files and your project's manual. Future updates are included. It is built and tested with Claude Code. Other agents are untested; without the AskUserQuestion tool it asks its questions as a numbered list.

### Which Laravel versions are supported?

Laravel 8, 9, 10, 11, 12 and 13 are each rehearsed end to end in automated tests on a fresh install. Plain PHP and static sites work by configuration. Your own app may have packages or code that only fail at runtime; the smoke test refuses to switch to a broken release.

### Does Claude connect to my server?

No. Claude never logs in to your server and never needs your passwords. You run the commands it gives you and paste back output that contains no secrets.

### Will it overwrite my live site?

Not until you run the cutover step. It moves your current public_html into a backups folder (nothing is deleted), links the new release, and prints the rollback command.

### How do I revert a bad release?

Automatically, if the live check fails after the switch. By hand: repoint the current symlink to an older release folder with one command (shown in your generated manual). Migrations are not undone; the database dumps are kept.

### Can I use it for a Hostinger VPS or a WordPress site?

No. It is for Hostinger shared or Business hosting with hPanel and SSH. WordPress, Node.js hosting and VPS or Cloud with root access are not covered.

### What do I need before I start?

A Hostinger plan with SSH enabled, a GitHub repository you administer (to add a deploy key and secrets), and Git, Python 3 and (for Laravel) PHP and Composer on your computer. You do not need to have your database or mail passwords ready: they go only into the server's .env file, never into the chat.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
