Skip to content

nwtgck/piping-static-host

Repository files navigation

piping-static-host

CircleCI

Host static files to Piping Server

Install

Install via GitHub

npm i -g nwtgck/piping-static-host#master

Usage

piping-static-host --dir=./mypublic --index=./mypublic/index.html

Then, you can access https://ppng.ml/ueM7kZ.
Note ueM7kZ is auto generated. You can specify the prefix by --host-prefix option.

Here are available options.

Options:
  --help         Show help                                             [boolean]
  --version      Show version number                                   [boolean]
  --server-url   Piping Server URL         [string] [default: "https://ppng.ml"]
  --host-prefix  Host prefix (default: random)                          [string]
  --dir          Public directory path                   [string] [default: "."]
  --index        Index file path                                        [string]