Skip to content

Latest commit

 

History

History
58 lines (40 loc) · 1021 Bytes

README.md

File metadata and controls

58 lines (40 loc) · 1021 Bytes

serve Dub Uses vibe.d

A simple HTTP server for static files.

Installation

You can simply use dub to run the tool.

dub fetch serve
dub run serve
dub run serve -- [ARGS]

Or you build the tool and copy/symlink it into your path.

dub fetch serve
dub build serve
sudo mv ~/.dub/packages/serve-1.0.0/serve /usr/local/bin/

Usage

  • serve the current working directory

    serve
  • serve an html file with it's containing folder and open it in your browser

    serve path/to/index.html
  • serve a folder

    serve path/to/folder
  • use a different port than 8080 (-p|--port)

    serve -p 1234
  • bind a different IP address than 127.0.0.1 using (-b|--bind)

    serve -b 127.0.0.1
  • run -h|--help to see all options

    serve -h