0.1.0 • Published 2 years ago

nginx-executor v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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();