##How to use it
npm install forever-reboot
then
var reboot = require('forever-reboot');
reboot.config(options);
###Reboot.config(Configuration);
ConfigurationObject
:
- main:(required)
String
the path when you use forever to start , example:forever start example/index.js
the 'main' should beexample/index.js
- branch:(options)
String
project branch ,default:master
. - method:(options)
String
project start method, default:forever
- dir: (options)
String
project git root directory, default:./
(advice you to set it with an absolute path)