Display a nice webpage showing the status of a bunch of git repositories.
Good for shared staging servers and stuff. I'm sure that you don't need this if you have a sensible deployment strategy. But some people don't.
- Copy the
- Copy the example repository block as many times as you need. Make sure you leave the
[General]block in there.
- Set up a
cronjob to run
php gitstat.phpevery ten minutes or so.
- Make the directory servable. You probably want to be careful to not expose this to the outside world, as requesting
gitstat.phprepeatedly would be a fairly effective DOS attack. Stick a suitable
.htaccessfile in there or something.
- Go to
index.htmlin your browser. Hopefully you'll see a nice screen like the one above.
Note: this was a quick hack written at midnight on a sofa at BarCampBrighton5. Use at your own risk etc.