Pre-release
Pre-release

@CurtisLusmore CurtisLusmore released this Jan 30, 2019 · 5 commits to master since this release

Description

When requesting any path ($path), ghp will do the following (all file
operations are relative to the root commandline flag):

  1. Check whether $path points to a file, if so serve that file
  2. Check whether $path points to a directory, if so serve $path/index.html
  3. Check whether $path.html points to a file, if so serve that file
  4. Check whether 404.html is a file, if so serve that file as a 404
  5. 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 and linux binaries yet, please raise an issue if you have any problems.
Assets 5