ts-krinkle-mwSnapshots
======================

## Install:
* Copy `local.php-sample` and rename to `local.php`
* Fill in paths for the needed directories (and create them if needed). Keep in mind that the PHP script
  needs to be able to write, read and remove files from these directories.
  In the case of `cacheDir`, it needs to be able to create directories as well.
* Make sure the path of `mediawikiCoreRepoDir` points to a mediawiki core checkout:<br>
  `git clone --depth 1 https://gerrit.wikimedia.org/r/p/mediawiki/core.git mediawiki-core`
* Run:<br>
  `php scripts/updateSnaphots.php`
* Symlink `{cacheDir}/snapshots` to `./public_html/builds`
* Schedule updateSnaphots.php to run hourly<br>
   `0 * * * * php /path/to/mwSnapshots/scripts/updateSnaphots.php > {logsDir}/updateSnaphots.log 2>&1`
* Symlink `./public_html` to be or to be inside of `/path/to/public_html`

ts-krinkle-mwSnapshots
======================

## Install:
* Copy `local.php-sample` and rename to `local.php`
* Fill in paths for the needed directories (and create them if needed). Keep in mind that the PHP script
  needs to be able to write, read and remove files from these directories.
  In the case of `cacheDir`, it needs to be able to create directories as well.
* Make sure the path of `mediawikiCoreRepoDir` points to a mediawiki core checkout:<br>
  `git clone https://git.wikimedia.org/git/mediawiki/core.git mediawiki-core`
* Run:<br>
  `php scripts/updateSnaphots.php`
* Symlink `{cacheDir}/snapshots` to `./public_html/builds`
* Schedule updateSnaphots.php to run hourly<br>
   `0 * * * * php /path/to/mwSnapshots/scripts/updateSnaphots.php > {logsDir}/updateSnaphots.log 2>&1`
* Symlink `./public_html` to be or to be inside of `/path/to/public_html`

Use git.wikimedia.org instead of gerrit
readme: Use git.wikimedia.org instead of gerrit

Also drop --depth since shallow copies are known to have issues when
kept alive for a long time and random shit happens (see #1).