I am trying a node express/socket.io project in Cloud 9. I have the following project structure
├── server.js
├── appconstants.js
├── public
└──landing.js
├── views
└──landing.html
we are using app.use(express.static(__dirname));
I am able to reach the .js files by accessing if from URL directly, but .html file path from url gives empty response.
The http response code to .html (get) was 200 in server.
hostIP:hostport/public/landing.js is accessible but
hostIP:hostport/views/landing.html is giving empty html response. While in Localhost these were working fine, c9 is giving problem, and to mention i have started my server using the c9 environment properties
server.listen(constants.read('port'),constants.read('url'));