gulp-webserver icon indicating copy to clipboard operation
gulp-webserver copied to clipboard

unable to serve index file in root directory

Open niemyjski opened this issue 9 years ago • 4 comments

I have my index.html defined in the root directory and not in a sub directory ("src"). I can't get my /index.html file to be served no mater what I try. If I run build which puts the minned versions in "dist" and put gulp.src('dist') it works. However, in debug mode (all the time), I just want to serve up the root directory.. How can I do this.

niemyjski avatar Sep 29 '14 19:09 niemyjski

Try gulp.src('.') or gulp.src('./') Both work for me.

TuiKiken avatar Oct 01 '14 20:10 TuiKiken

Are you using directoryListing ?

MoOx avatar Nov 11 '14 07:11 MoOx

Nope, we are just trying to serve content. I ended up getting this working and then had to give up on gulp for now:\

Thanks -Blake Niemyjski

On Tue, Nov 11, 2014 at 1:56 AM, Maxime Thirouin [email protected] wrote:

Are you using directoryListing ?

— Reply to this email directly or view it on GitHub https://github.com/schickling/gulp-webserver/issues/45#issuecomment-62513502 .

niemyjski avatar Nov 11 '14 12:11 niemyjski

https://github.com/schickling/gulp-webserver/blob/master/src/index.js#L68

septs avatar Aug 10 '15 13:08 septs