choco-cli
v0.0.7
Published
Chocoland.js toolkits
Downloads
4
Readme
How to install
# npm i -g choco-cli
Choco server with config file
$ cd any/path
$ touch choco.yml
$ nano choco.yml
server:
path: "./public-folder"
port: 3000
key: "../path/to/server.key"
cert: "../path/to/server.crt"
Choco server with commands
usage: choco server [path] [options]'
options:'
-d dir(./)'
-p Port to use [3000]'
-a Address to use [0.0.0.0]'
-U Use UTC time format in log messages.'
-s Enable https and set the path to cert and key.'
-c Path to ssl cert file.'
-k Path to ssl key file.'
-h --help Print this list and exit.'
listen server
$ choco server
or
$ choco server -d ./public-folder -c ../path/to/server.crt -d ./ -k ../path/to/server.key