Speeding up your Satis run

Speeding up your Satis run

Since we have to deal with a lot of private packages which cannot be shared on packagist I set-up a private Satis repo. Whenever a new version of a package gets created the Satis build process is started by our Jenkins build server. In the last couple of months this process takes quite a while because Satis rebuilds the index for every repo it knows about. Since we deal with quite a few repos containing a large amount of versions it slowed down the "build time". Obviously it does not make any sense to run Satis on a repo that has not changed. Since Satis was lacking this feature I started hacking on it and I am happy that the feature got merged into master this morning. If you have to deal with large repos or a large number of repos you might want to give it a try.This is how things work:

To run satis for all your repos run the following command:

php bin/satis build config.json web


To run satis for one specific repo/package run the following command:

php bin/satis build config.json web your/packageidentifier


To run satis for multiple repos/packages run the following command:

php bin/satis build config.json web your/packageidentifier your/packageidentifier2


Tags: , ,

Eintrag von Stephan Hochdörfer am 01.05.2014

comments powered by Disqus