github-actions-library icon indicating copy to clipboard operation
github-actions-library copied to clipboard

Improve deployment

Open mbtamuli opened this issue 6 years ago • 2 comments

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

mbtamuli avatar Feb 27 '19 05:02 mbtamuli

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

sudhir-yadav avatar Feb 27 '19 05:02 sudhir-yadav

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

mbtamuli avatar Feb 27 '19 05:02 mbtamuli