Skip to content

MartinNowak/serve

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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