nginx-executor

0.1.0 • Public • Published

nginx-executor

start a nginx server.

when config is changed, the nginx server will reload automaticly.

install

npm install nginx-executor -D

start a server

const path = require('path');
const NginxExecutor = require('nginx-executor');

const nginx = new NginxExecutor({
  config: path.resolve(__dirname, './nginx.conf'),
});

nginx.start();

stop a server

// same code like start a server
nginx.stop();

reload a server

// same code like start a server
nginx.reload();

/nginx-executor/

    Package Sidebar

    Install

    npm i nginx-executor

    Weekly Downloads

    1

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    12.3 kB

    Total Files

    7

    Last publish

    Collaborators

    • btconfig