composer / mirror

Mirroring script for packagist.org and composer repositories metadata in general
MIT License
28 stars 9 forks source link

Composer Repository Mirror

Setup

Scripted Setup

Manual Setup

Debugging and force-resync of v2 metadata

In case the v2 metadata gets very outdated because you did not update the mirror for a while, this will be detected and a resync will happen automatically.

However, if you want to run a resync manually to see what is going on you can use:

./mirror.php --resync -v

This will make sure the v2 metadata is in sync again (wait for the script to complete which may take a while) and then running ./mirror.php --v2 regularly again should get you back on regular updates.

Requirements

Update

In your mirror dir:

Then restart the workers