Releases: CurtisLusmore/ghp
Releases · CurtisLusmore/ghp
v0.1
Description
When requesting any path ($path
), ghp
will do the following (all file
operations are relative to the root
commandline flag):
- Check whether
$path
points to a file, if so serve that file - Check whether
$path
points to a directory, if so serve$path/index.html
- Check whether
$path.html
points to a file, if so serve that file - Check whether
404.html
is a file, if so serve that file as a 404 - Serve a 404
Usage
$ ghp -help
Usage of ghp:
-port int
The port to serve over (default 8080)
-root string
The root directory to serve files from (your GitHub Pages repo) (default ".")
$ ghp -root MyGitHubPages
Notes
- Haven't tested
darwin
andlinux
binaries yet, please raise an issue if you have any problems.