Deploy Kirby with rsync
Published
Updated
Deploy a whole Kirby site to fortrabbit with rsync, code, vendor folder and content in one command, without Git. Quick for small sites and single developers.
Get ready
- A local development environment with Kirby installed
- An app on fortrabbit, created with the Kirby software
Deployment
Sync the project folder up and down:
# UP: from local to remote (syncs to the app root)
$ rsync -av ./ {{app-env-id}}@ssh.{{region}}.frbit.app:
# DOWN: from remote to local (syncs from the app root)
$ rsync -av {{app-env-id}}@ssh.{{region}}.frbit.app: ./
See the rsync article for more details.
The vendor folder
rsync uploads the local vendor folder too. Keep the local PHP version close to the PHP version of the environment. Alternatively, run composer install over SSH, or switch to Git and rsync, where the build commands install the dependencies.