5 ms·
But git already has a built in webserver... https://git-scm.com/book/en/v2/Git-on-the-Server-GitWeb https://git-scm.com/book/en/v2/Git-on-the-Server-GitWeb
by phonethrowaway 7y ago
But git already has a built in webserver...
https://git-scm.com/book/en/v2/Git-on-the-Server-GitWeb https://git-scm.com/book/en/v2/Git-on-the-Server-GitWeb
- obituary_latte 7y agoTIL! Thanks! Interesting, though, that it doesn't appear to work with MacOS built-in apache (webrick works fine though).
- tinix 7y agoCan you run it with python's built in http server? That's native on all OSX installs. I believe OSX ships with Python2 by default, right? https://docs.python.org/2/library/cgihttpserver.html https://docs.python.org/2/library/cgihttpserver.html Hmm...
- obituary_latte 7y agoYup MacOS ships with python. I didn’t try a python server since the ruby webrick server worked fine I just found it curious Apache didn’t work since it also ships in the OS.
- rkuykendall-com 7y agoThe fact that this is news to people here is confirmation that it was a mistake.
- recursive 7y agoAre all HN stories about mistakes?
- tinix 7y agoI disagree, the fact that it's news to people here means people don't know their tools as well as one might assume. Implying that it's a mistake because people don't know about it is very odd. Clearly, I know about it, as do others. It's been possible for 10+ years to serve git repos using gitweb, and mercurial repos using hgweb. We did this in like 2007-2009ish, locally, in our LAN, among developers... because our code couldn't be pushed to a third party for... reasons. Eventually I did setup our own internal SSH server to serve the repos, but for quick browsing of a team's repo state, using the built in HTTP server is just fine.
- np_tedious 7y agoI definitely did not know that. Thanks!
- tinix 7y agoYes! This has been there for over a decade! And since there have been hundreds of alternative UI tools that build upon this same tooling. How are people here saying they've never heard of this? Oof... Typical developers, not even familiar with their tools.