Skip to content

btconfig/nginx-executor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published