rtCamp / github-actions-library

Collection of Github Actions useful for WordPress Deployments
96 stars 9 forks source link

Improve deployment #21

Open mbtamuli opened 5 years ago

mbtamuli commented 5 years ago

Deployments can feel slow because we are using deployer. Deployer creates releases on each deploy and copies all the files. This is required in case of production environments to have an easy way to rollback and ensure all files are from a fresh WordPress install and none of them have been edited or corrupted.

But, for non-production environments, we can significantly improve the speed of deployment by simply copying the files using rsync(which will only copy newer files).

TL;DR

Production(master) - deployer Non-production - rsync

sudhir-yadav commented 5 years ago

We can improve deployment speed, here are a few changes made to deployer script. https://github.com/rtCamp/apogee/blob/master/.circleci/deploy.php

mbtamuli commented 5 years ago

Just found out cachetool has been turned into a recipe - https://deployer.org/recipes/cachetool.html. Can directly use this.