web-commander

0.5.0 • Public • Published

web-commander

NPM License Downloads

This is a lite server to execute commands according to web requests.

Installation

$ npm i web-commander -g

Usage

  1. Start web-commander at 0.0.0.0:2333:

    # Default address is `0.0.0.0:2333` 
    $ web-commander
     
    # Host and port may be overridden by environment variables 
    $ HOST=localhost PORT=8888 web-commander
  2. Open dashboard by the address specified above, then add projects and commands.

  3. Make a request to web-commander:

    POST http://server.address/cmd/command_name/command_type
    

Config

Default configurations can be overridden by environment variables.

  • HOST

    The server host, default as ''.

  • PORT

    The server port, default as 2333.

  • DATA_DIR

    The directory to store data, also as current working directory to start each task. Default as data.

    DATA_DIR can either be a path relative to current working directory or an absolute path.

Readme

Keywords

Package Sidebar

Install

npm i web-commander

Weekly Downloads

1

Version

0.5.0

License

MIT

Last publish

Collaborators

  • gera2ld