npm

gulp-forever-monitor

1.0.9 • Public • Published

gulp-forever-monitor

Forever deamon for gulp. Based on forever-monitor

Install

npm install gulp-forever-monitor

Example

const gulp = require('gulp');
const forever = require('gulp-forever-monitor');

gulp.task('run:server', function() {
  var foreverMonitorOptions = { 
    env: process.env,
    args: process.argv,
    watch: true, 
    watchIgnorePatterns: ['.*', 'node_modules/**', 'public/**', 'temp/**']
  }
  
  forever('server.js', foreverMonitorOptions)  
  .on('watch:restart', function(fileInfo) { 
    console.log('server was restarted');          
  })
  .on('exit', function() {
    console.log('server was closed');
  })
})

Module returns forever-monitor stream.

Package Sidebar

Install

npm i gulp-forever-monitor

Weekly Downloads

56

Version

1.0.9

License

MIT

Unpacked Size

5.57 kB

Total Files

7

Last publish

Collaborators

  • ortex