Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve deployment #21

Open
mbtamuli opened this issue Feb 27, 2019 · 2 comments
Open

Improve deployment #21

mbtamuli opened this issue Feb 27, 2019 · 2 comments
Labels
enhancement New feature or request

Comments

@mbtamuli
Copy link
Contributor

mbtamuli commented Feb 27, 2019

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 mbtamuli added the enhancement New feature or request label Feb 27, 2019
@sudhir-yadav
Copy link

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
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants