serve

command module
v0.0.0-...-aad6d10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 20, 2017 License: MIT Imports: 13 Imported by: 0

README

HTTP server for development - serve several specified directories simulataniously

Install

go get github.com/Alexendoo/Serve

Or download a binary

Usage

USAGE:
   serve [OPTION]... [DIR]...

OPTIONS:
       --host     --  bind to host (default: localhost)
   -i, --index    --  serve all paths to index if file not found
       --no-list  --  disable directory listings
   -p, --port     --  bind to port (default: 8080)
   -v, --verbose  --  display requests and responses

Examples

Serve files from the current directory

serve

Utilise npm packages without having to type ../node_modules

serve client node_modules
client/
  index.html
node_modules/
  whatwg-fetch/
    fetch.js
<!-- in client/index.html -->
<script src="whatwg-fetch/fetch.js">

Use a specified file for any non matching requests, for instance for HTML5 routing

serve -i index.html

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL