gimm / gulp-live-server

serve your nodejs/static app live
148 stars 71 forks source link

Clones the environment, fixed test repetition. #15

Closed gingi closed 9 years ago

gingi commented 9 years ago

Require'ing gulp-live-server would set the process environment's NODE_ENV to development. By cloning the env object, it has its own copy.

The simple test server would not stop on testing, so subsequent test runs would fail on EADDRINUSE errors. Added an after to stop the server.