Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

gulp-forever-monitor

1.0.6 • 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.

Install

npm i gulp-forever-monitor

DownloadsWeekly Downloads

821

Version

1.0.6

License

MIT

Unpacked Size

5.57 kB

Total Files

7

Last publish

Collaborators

  • avatar