Skip to content

stagas/nploy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nploy

Installing

Install with npm install -f -g nploy until node-http-proxy fixes for 0.6.x.

Usage

  Usage: nploy [options]

  Options:

    -h, --help             output usage information
    -V, --version          output the version number
    -r, --range <a>..<b>   Port range [7000..7099]
    -t, --time <seconds>   Time to idle [15]
    -p, --port <port>      Port to listen to [80]
    -h, --host <host>      Host to listen to [0.0.0.0]
    -c, --config <config>  Config file [./nploy.cfg]
    -d, --dir <dir>        Current working dir [.]

nploy.cfg

The config file is a simple text file in this format:

domain.name.com path/to/app.js
www.domain.other.com path/to/another.js

If the domain is prefixed with www. it will use it and redirect requests there. So going to domain.other.com/foo/bar you will be redirected to www.domain.other.com/foo/bar. And vice-versa.

Licence

MIT/X11

About

Lazy spawn node apps on a single ip

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published