How to configure gulp-connect to run file at bin/www (express)? I can't make it work, I find no documentation on gulp-connect site that deal with config/change the starting file used by gulp-connect.
var gulp = require('gulp'),
connect = require('gulp-connect');
gulp.task('webserver', function() {
connect.server({
root: 'app',
livereload: true
});
});
gulp.task('default', ['webserver']);
Why are using you using both "Express" and "gulp-connect" ?
You should just stick to one. Assign
root : bin/wwwand it should work orroot: [__dirname]Alternatively use:
path = require('path')and thenroot: path.resolve('./')