User:Egor/How to add a patch server

From Touhou Patch Center
Jump to navigation Jump to search


How to add a mirror

  • Go to cd /var/www/mirrors and run sudo -u www-data git clone https://github.com/newuser/repo.git newuser.
  • In /var/www/update-mirrors.sh add a pull_and_repoupdate /var/www/mirrors/newuser line.

How to add a neighbor

  • In /var/www/thpatch/w/LocalSettings.php locate the $wgTPCRepoNeighbors array and add 'https://mirrors.thpatch.net/newuser/'. Trailing slash is important.
  • Go to cd /var/www/thpatch/w/extensions/TouhouPatchCenter/maintenance and run ./kick.sh Alcostg. (This will refresh repo.js)
  • Check here.