scottcorgan / pushstate-server

Static file server that works with HTML5 Pushstate.
421 stars 35 forks source link

Always same error trying to run the server #78

Closed lamba92 closed 6 years ago

lamba92 commented 6 years ago

pushstate-server -d ./projector/frontend

events.js:141
      throw er; // Unhandled 'error' event
      ^

Error: listen EADDRINUSE ./projector/frontend
    at Object.exports._errnoException (util.js:870:11)
    at exports._exceptionWithHostPort (util.js:893:20)
    at Server._listen2 (net.js:1224:19)
    at listen (net.js:1273:10)
    at Server.listen (net.js:1363:5)
    at Function.listen (/usr/local/lib/node_modules/pushstate-server/node_modules/connect/index.js:217:24)
    at Object.exports.start.directories.forEach [as start] (/usr/local/lib/node_modules/pushstate-server/index.js:35:22)
    at Object.<anonymous> (/usr/local/lib/node_modules/pushstate-server/bin/pushstate-server:10:8)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)
scottcorgan commented 6 years ago

It looks like you already have a process running a server on the default port of 9000

WuglyakBolgoink commented 6 years ago

@scottcorgan

I have same problem with all ports... Until now, i think, that pushstate-serveruse value ./projector/frontend as server-ip or port... :(

WuglyakBolgoink commented 6 years ago

@scottcorgan so.. your HELP is wrong!

usage: pushstate-server [-d directory] [-p port] [-f file]

FYI @Lamba92 correctly usage is:

pushstate-server ./projector/frontend 3000

without -d or -p

scottcorgan commented 6 years ago

@WuglyakBolgoink can you open a PR to update the docs? That'd be super helpful!