KIT TOOL · GIT AND DEPLOYS

Git, releases and deploys, the same on every stack

Every dev site is a git repo, and git, releases and deploys follow the same steps whatever the site is built with. The assistant works on a branch, a release is built and checked, and a deploy goes to your host when you say.

karkinos.local / tools / web-dev / willowandash
One dev site in the panel, with its Overview, Releases, Deploys, Backups, Checks and Settings tabs, and the dev site, mail catcher and traffic viewer running beside it. Example data.

01 · QUICK ANSWERS

What people ask first

Does it work with my GitHub repo?

Yes, private ones too. Sign the box in to GitHub on the Connections page and install its GitHub App on the repos it may use. The assistant can then clone, push and open pull requests.

Can I keep my own branch names?

Yes. Git flow with main and develop is suggested, main on its own works, and so do names of your own.

How do I undo a release?

Go back a release, which makes the one before current again, then deploy it. For the database and files, restore a backup. A snapshot of the site is taken first.

Can it deploy to my host without a dry run?

No. A real deploy is refused until a dry run of the same release to the same place has passed just before it.

Will I know when a deploy or backup fails?

If you want to. Each one raises an event, so a rule on the Events page can leave you a note or ask the assistant to look.

02 · ONE CHANGE, START TO FINISH

From a branch to your host, with a way back

The same steps on every stack. Nothing reaches your host until you say.

  1. The branch

    The assistant pulls the staging branch and makes a branch for the work.

  2. The checks

    It builds on the dev site and runs the site’s checks before it calls the work done.

  3. The pull request

    Into staging, for you to merge. Merged branches are kept.

  4. The release

    Built in a fresh folder from the committed branch, its pages fetched, and made current only if both pass.

  5. The dry run

    What would change on your host, with nothing sent.

  6. The deploy

    rsync or SFTP over ssh, or a git push, when you say.

  7. One step back

    Go back a release, then deploy the one before.

03 · BRANCHES

A branch, a pull request, your merge

The assistant pulls the staging branch, makes a branch for the work, checks it and opens a pull request into staging. Staging goes into production for a release.

  • Connect a repo later

    Point a site at a new GitHub repo and its branches are pushed there in one step.

  • New commits noticed within a minute

    A commit on production or staging raises an event, so a rule of yours can act on it.

  • Merged branches kept

    Nothing is deleted after a merge, so the history stays whole.

04 · RELEASES

A release that proves itself

Each release is built in a fresh folder from the committed branch, with the lockfiles deciding what is installed. It is served on its own, its pages are fetched, and it becomes current only when the build and the check pass.

  • What counts as a pass

    Every page under 500 with no PHP error, WordPress critical error, Python traceback or Laravel error showing.

  • Five kept

    The last five passing releases, and the newest failed one to read.

  • Only what is built ships

    A static site sends its built folder, never its source.

05 · SETTINGS

A .env built from the key store

Laravel, Django and Next.js sites get a .env written from names in the key store, with the database settings added. Values never go into the repo, and git is set to ignore the file.

06 · DEPLOYS

To your host, dry run first

Set a target up once, in three steps, and deploy to it whenever you say.

  • Three ways

    rsync or SFTP over ssh, or a git push to hosts that deploy from git.

  • Never sent

    The .git folder, the .env and the dev box's own notes, plus anything the host keeps for itself.

  • A dry run first

    The real deploy is refused until a dry run of the same release has passed.

  • The host checked

    Its key is kept on first contact, and a changed key stops the deploy until you look.

  • Store themes too

    A Shopify or BigCommerce theme is pushed from the same Deploys tab, and its push is on the record like any deploy.

07 · BACKUPS

Backups that are tested

Nightly if you like, to any storage rclone can reach, with the newest 14 kept by default. A restore test fetches a backup, checks its checksums and imports it into a scratch database, and changes nothing on the site.

  • What’s in one

    A database dump, the repo packed with its history, and a list of checksums.

  • A real restore

    Files, database or both. A snapshot of the site as it is now is taken first, so you can go back.

  • A restore test

    Unpacks and imports a backup into a scratch folder and database, counts what’s there, and changes nothing.

08 · ON THE RECORD

Every release, deploy and backup, written down

Each site keeps its history, and each step raises an event, so a rule can tell you or act on it.

  • A release

    Built and made current, failed its build or page check, or moved back.

  • A deploy

    Done, or failed.

  • A backup

    Done, or failed.

  • A restore

    Done, failed, or a test that found problems.

  • GitHub

    The box’s token renewed, or not.

A site’s releases, deploys and backups
WhenWhatResult
Mon 09:12Release built from stagingMade current
Mon 09:20Dry run to productionPassed, 14 files would change
Mon 09:22Deploy to productionDone
Mon 03:15Nightly backupCopied off the box
Sun 11:02Restore testPassed

09 · THE REST OF THE KIT

More of the kit

Releases carry work that the tests, the browser and the accessibility checks have already passed.

WebDev (in a box)

10 · THE STACKS AND BUILDERS

On every stack you run

Every site runs on the PHP, Python or Node version it needs, side by side on the same server, and the quality tools are one shared install. WordPress, Laravel, Drupal, Craft, Joomla and Django come with a database, and Statamic, plain PHP, Flask, Astro and Next.js get one when it is switched on for that site. Anything else that runs on Linux starts as an empty site. HTML with a JavaScript and CSS build is a kind of its own, and Shopify and BigCommerce themes get dev sites too.

READY WHEN YOU ARE

Released with a way back

WebDev (in a box) runs on your own cloud server, hosted in Europe, from £250 a month.

Ask about In a Box