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.
More articles
SEO checklist for a new website
Ten things to check before the search engines see your site for the first time.
ReadHow to launch a multilingual website
Separate pages, a shared translator and correct hreflang — without a tangle of plugins.
ReadAn online store in one day
Catalog, cart and orders on PurpleCMS: what to prepare and in what order to fill it in.
ReadTry it right now
The admin demo opens in a second — no sign-up, no card, no sales calls.