You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using gulp-express in my project to deploy the application gulp-live-server.js
`
var gulpCore = require('gulp');
var gulpParam = require('gulp-param');
var gulpExpressServer = require('gulp-express');
var gulp = gulpParam(gulpCore, process.argv);
var ipfilter = require('express-ipfilter');
var ips = ['http://localhost:8080/'];
//server will be running on port 3100 if not explicitly specified as below
gulp.task('server', function (port,env, package) {
console.log('IN LIVVEEEEEEEEE SERVERRRRR --->>'+' port passed:' + port+ ' command line args:' + process.argv+ ' package:' +package+' env:' +env );
var expressPort = isNaN(port + '') ? 3200 : port || 3200;
var jsonServerStarter = 'server/json-server-starter.js';
gulpExpressServer.run([jsonServerStarter], { env: { expressPort: expressPort } });
gulpExpressServer.use(ipfilter(ips, {mode: 'allow'}));
gulp.watch(['db.json'], function (event) {
console.log('abt to notify for db.json');
//gulpExpressServer.notify(event);
});
});
gulp.task('default', ['server']);`
any inputs?
The text was updated successfully, but these errors were encountered:
I am using gulp-express in my project to deploy the application
gulp-live-server.js
`
any inputs?
The text was updated successfully, but these errors were encountered: