0.3.12 • Published 11 years ago

nodectl v0.3.12

Weekly downloads
3
License
-
Repository
github
Last release
11 years ago

nodectl

supervisor sctipt for nodejs.

Features

  • watch code changes
  • cluster
  • daemonize
  • colorize console
  • env setter

Install

npm install -g nodectl

How to use

cd $HOME
express test
cd test
npm install
nodectl start app.js

watch

nodectl -w app.js

daemonise

nodectl -d app.js

both

nodectl -d -w app.js

stop daemon

cd ~/test
nodectl stop

daemonize and..

cd ~/test
nodectl start -d app.js
nodectl reload
nodectl restart
nodectl status
  application running.

Usage

nodectl [action] [options] <program>

Action

start

execute program (default action)

stop

stop daemonized program

restart

restart program with daemonize mode

force-clear

force clear pid

reload

release edited javascript (restart only child processes)

status

check program running or not

Options:

-p, --port NUMBER

default 3000, pass listening port (process.env.PORT)

-e, --env STRING

default development, pass environment (process.env.NODE_ENV)

-c, --cluster NUMBER

default number of cpu threads, concurrent process with cluster module

-P, --pidpath STRING

pid file location

-n, --nocolor

stop colorize console

-d, --daemon

daemonize process

-w, --watch

watch code changes, auto reload programs

-t, --test

check options (not execute)

-v, --version

show version and exit

-h, --help

show help message and exit

Defaults

  • options default from ${HOME}/.noserc.json
  • default from package.json: main

package.json search

nodectl automatically search nearest package.json form parent directories.

  • application name from package.json: name
  • application version from package.json: version
  • application main script from package.json: main
0.3.12

11 years ago

0.3.11

11 years ago

0.3.10

11 years ago

0.3.9

11 years ago

0.3.8

11 years ago

0.3.7

11 years ago

0.3.6

11 years ago

0.3.5

11 years ago

0.3.4

11 years ago

0.3.3

11 years ago

0.3.2

11 years ago

0.3.1

11 years ago

0.3.0

11 years ago

0.2.2

11 years ago

0.2.1

11 years ago

0.2.0

11 years ago

0.1.4

11 years ago

0.1.3

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago

0.0.9

11 years ago

0.0.8

11 years ago

0.0.7

11 years ago

0.0.6

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago