Skip to content

1.2.0

Choose a tag to compare

@hesami hesami released this 04 Nov 11:51
· 9 commits to main since this release
827a4d7

Release Notes — v1.2.0

Rollback & Disk Cleanup

This release adds rollback to previous releases and disk cleanup, and bumps hideploy.sh to 1.2.0. README.md has been updated as well. The new logic was tested in a sandbox with fake docker and git. It has not been verified on a real server yet, so deploy to a low-importance project first.


1) Maintenance page & rollback

Maintenance mode on every deploy (automatic)
Before the code is swapped, the site enters Laravel maintenance mode and visitors see a "We'll be back soon" page instead of an error, refreshing itself every 15 seconds. After a successful deploy, the site comes back automatically.

If a deploy fails, the site is intentionally left in maintenance mode, because half-updated code can break pages or data. The log message tells you what to do.

nginx page
While the container restarts, nginx itself serves the same page. The file is hideploy-maintenance.html and you can edit it (it is never overwritten).

Deploy history
Every deploy (pipeline or manual) writes one line to .deploy.history: time, version, result (ok, failed, rollback), and commit message.

Rollback
Project menu → 13) Deployments → Roll back. It lists previous healthy versions, offers a database backup first, then reverts the code, rebuilds, and brings the site back online. All of the following worked in the fake test: rolling back from version 3 to 2, the database migration warning, and coming back online.

Two important notes: only the code is rolled back, not the database. If the bad release added a table or column, the script warns you. And the rollback is temporary: the next push deploys the newest code again. To make it permanent, git revert the bad commit and push.

A maintenance-mode toggle (manual on/off) is available in the same menu.


2) Disk cleanup

New "Disk space" row in the table at the top of the menu: green below 80%, yellow from 80%, red from 90% — and in that state, cleanup is suggested as the next step.

Menu path: 5) Manage Projects → 4) Disk usage and cleanup.

Safe cleanup: orphaned Docker images, old build cache, system logs above 200 MB, package caches, and Laravel logs older than 14 days. It does not touch volumes (databases), running containers, project code, or .env.

Deep cleanup:

  • All images without containers (the next deploy or backup will be a bit slower).
  • Find and clear very large log files.
  • Delete manual backups older than 30 days.

Automatic weekly safe cleanup (Sundays at 04:10) can be turned on or off.

Every successful deploy also removes the orphaned images it creates, so they never accumulate in the first place.


Upgrade

Replace hideploy.sh and README.md on GitHub and tag v1.2.0. On the server:

sudo hideploy update

Then hideploy --version should show 1.2.0.


Testing Status

The new logic was tested in a sandbox with fake docker and git. It has not been tested on a real server — deploy to a low-importance project first. If you hit an error, share the message.