An open API service indexing awesome lists of open source software.

https://github.com/nwtgck/piping-static-host

Static host to Piping Server
https://github.com/nwtgck/piping-static-host

http-deploy piping-server static-hosting

Last synced: 11 months ago
JSON representation

Static host to Piping Server

Awesome Lists containing this project

README

          

# piping-static-host
[![CircleCI](https://circleci.com/gh/nwtgck/piping-static-host.svg?style=shield)](https://circleci.com/gh/nwtgck/piping-static-host)

Host static files to [Piping Server](https://github.com/nwtgck/piping-server)

## Install

Install via GitHub

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

## Usage

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

Then, you can access .
Note `ueM7kZ` is auto generated. You can specify the prefix by `--host-prefix` option.

Here are available options.
```bash
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]
```