Download the PHP package floriankarsten/simple-staging without Composer
On this page you can find all versions of the php package floriankarsten/simple-staging. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package simple-staging
Simple staging Janitor jobs
Plugin for very simple staging setup for https://github.com/bnomei/kirby3-janitor/ (required). Beta quality - use at your own risk. It's working without problems for me but any comments and suggestions for improvements are welcome. There are two variants pure php and rsync.
Requirements
Plugin assumes flat structure and while you can define the destination (live site) as you want i would suggest structure like
PHP job vs Rsync job
Both jobs are different. The PHP job should be more compatible but it naive, takes longer, it alwyas copies everything and it requires you to have space for 3 versions of your site. It works like this
- Copy staging.mysite.com to __staging_mysite.com
- Rename mysite.com to __tobedeleted_mysite.com
- Rename __staging_mysite.com to mysite.com
- Delete __tobedeleted_mysite.com
Rsync job requires you to have rsync available on your server but it syncs changes from staging to live directly. This makes it much more efficient and you have only 2 versions of site at the time. Rsync also has better include/exclude options. Many shared hostings with ssh have rsync available but check if you allow php to run exec();.
You probably want to use Rsync job if you can.
Install
config.php
In your blueprint
Configuration PHP job
Configuration Rsync job
This plugin wouldn't happen without @garethworld who kindly hired me to make it and then wanted to have it released to Kirby community. Thanks GARETH
All versions of simple-staging with dependencies
php Version >=7.4.0
bnomei/kirby3-janitor Version ^2.6