Deploy Kirby with rsync

M↓

Get ready

Deployment

# 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: ./
shell

See the rsync article for more details.

The vendor folder

When syncing the project root, the vendor folder is included. In most cases this works surprisingly well. Keep in mind that your local PHP version should roughly match the fortrabbit remote for that to work. It's possible to run composer install on the fortrabbit environment. A better alternative is to use Git deployment and automate composer with build commands using git and rsync workflow.

Found a tpyo?Edit

Cookies ahead

Our support chat tool "Intercom" would like to collect some more data on you. See the related link for more details.

Docs