Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript Gulp Basics Welcome to Gulp.js Your First Gulp Task

Juliette Tworsey
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Juliette Tworsey
Front End Web Development Techdegree Graduate 32,425 Points

Gulp serve vs http-server -p 3000

What is the difference between running gulp serve and http-server -p 3000?

Is there a reason why I should use one over the other when checking updates?

Thanks:-)

2 Answers

Tom Geraghty
Tom Geraghty
24,174 Points

We're learning about gulp so he's showing us everything gulp can do. Serving static build files can be done a million ways. If you're working in a gulp toolchain then it makes sense to use the gulp server so you don't have to switch contexts and think about installing and using another server program.

python -m SimpleHTTPServer 3000 works just as well as gulp serve or any of the npm servers.