Development

Deploy from GitHub in one click

Copying files to the hosting over FTP is slow and risky: it is easy to overwrite the wrong file or forget one. PurpleCMS can update itself from a git repository.

The scheme is simple. The site on the server is a clone of the repository. When you push to the selected branch, GitHub calls the webhook, and the deploy script pulls the changes. The CMS is written in pure PHP, so there is no build step — the files in the repository are the site.

Some files are changed by the admin right on the server — for example, exchange rates and translations. Before the update, the script saves such edits and returns them if the file was not changed in git. If it was, the server version is kept in a backup folder, so nothing is lost.

For developers this means a normal workflow: branches, reviews and history of every change. For the owner — a site that updates without downtime.

All articles

Try it right now

The admin demo opens in a second — no sign-up, no card, no sales calls.