0.1.2 • Published 11 years ago
serverhere v0.1.2
serverhere

Create an express static server in current director with some options, includes gzip/livereload/view engine/port. If you thinks another something is useful and helpful, please tell me.
Installing
npm install serverhere -gor
npm install ser -gser is a shortcut alisa for serverhere
Example
Following command create a server
- that watch
./publicfor livereload - and enable
gzip - and use
jadeas view engine - and default set
portto 2014 - and use
./publicas static folder
serverhere --watch public --compress -e jade --port 2014 publicBefore running, you need to install some dependencies:
npm installThen run command to start your server:
npm startUsage
Usage: serverhere [options] <path>
(path default is ".")
Options:
-h, --help output usage information
-V, --version output the version number
-p --port <port> server listen port, default to 1024
-c --compress enable gzip
-e --engine <type> view's engine ejs/jade/hogan or any others, default not set
-v --views <path> views director path, default to "views"
-w --watch <dir> watch a dir and reload browser when files changed
-i --ignore <ignore> unwatch file/dir under the watch dir, use "," as separator of multiple file