Local server redirect
This sets up a series of tasks to run at system startup, as well as an nginx server that can serve things at a given host. Ever get on a plane and then realize you should have made the docs locally? This project does that for you.
What can I do with it?
-
View the Python docs by going to "http://python"
-
View the Ruby docs by going to "http://ruby"
-
View Golang docs by going to "http://godoc"
-
Open IPython by going to "http://ipython"
And more! Add anything you want to private.conf to add this porject.
Screenshots
Behold:
Install
Run the following at the command line:
make install
This will:
-
Generate usable
.plistfiles for your machine forgodocandipython -
Copy them to LaunchDaemons
-
Install them with launchctl, so they load when your machine boots.
-
Start an nginx server that serves those pages at
http://ipythonandhttp://godoc -
Load that nginx server with launchctl.