compulim / vscode-express

Hosts current workspace in Express
MIT License
16 stars 3 forks source link

Step-by-step instructions and debugging #1

Open thatknitter opened 8 years ago

thatknitter commented 8 years ago

I can get the server started no problem. But then I get the error "Cannot GET /" on the page. I can't run a specific page of the website, and I can't figure out how to do so since there is little to no documentation.

Please make proper instructions.

compulim commented 8 years ago

Sorry missed your issue. My bad.

Will improve README.md and maybe include some helpers to proactively look for problems (e.g. missing index.html) before anyone hit it.

spradooooo commented 7 years ago

I have the same issue, and I dont know what is wrong. and I get this error too

Server is starting to listen to port 80 and will serve /Users/Mohamed/Web/JavaScirpt/ECMAScript 6 Failed to start server due to listen EACCES 0.0.0.0:80

can you help please

compulim commented 7 years ago

Server is starting to listen to port 80 and will serve /Users/Mohamed/Web/JavaScirpt/ECMAScript 6 Failed to start server due to listen EACCES 0.0.0.0:80

This seems on your box already have a server running on port 80. You may want to change the port number in preferences express.portNumber.

spradooooo commented 7 years ago

Thank you for responding, I changed the port number like that

"express.portNumber": 3000,

unfortunately, it doesn't work for me. I am afraid that I am missing something, I am sure there is nothing wrong in the extension, maybe in my setup. Is there any perquisites I should know about as a beginner, things I should do in the terminal, I really don't know what is the problem. Dreamweaver used to handle all this for me and I wanted to have it professional way.

spradooooo commented 7 years ago

Hello, I just found the solution for my problem. so in order to make the server work, the index.html has to bo in the root folder, not in any subfolder. and all the scenarios I've been through my index.html was not.