UNPKG

bot18

Version:

A high-frequency cryptocurrency trading bot by Zenbot creator @carlos8f

16 lines (13 loc) 360 B
var exec = require('child_process').exec , join = require('path').join exports.name = 'nginx'; exports.version = '1.2.4'; exports.listen = function (options, cb) { exec('nginx', ['-c', join(__dirname, 'nginx', 'nginx.conf')]); setTimeout(function () { cb(null, 8080); }, 500); }; exports.close = function () { exec('nginx', ['-s', 'quit']); };