tpiros/advanced-chat

404 error for static files.

Closed this issue · 2 comments

Hey there,

I'm attempting to run this on OpenShift, and I get to the HTML but I get the following 404's (see below).
I assume it's a problem with Express but I cannot for the life of me figure out what.

Failed to load resource: the server responded with a status of 404 (Not Found)
http://nodesocketapp-dodan.rhcloud.com/components/font-awesome/css/font-awesome.css Failed to load resource: the server responded with a status of 404 (Not Found)
http://nodesocketapp-dodan.rhcloud.com/components/bootstrap/dist/js/bootstrap.js Failed to load resource: the server responded with a status of 404 (Not Found)
http://nodesocketapp-dodan.rhcloud.com/components/jquery/dist/jquery.js Failed to load resource: the server responded with a status of 404 (Not Found)
client.js:82 Uncaught ReferenceError: $ is not defined
http://nodesocketapp-dodan.rhcloud.com/components/bootstrap/dist/css/bootstrap.css Failed to load resource: the server responded with a status of 404 (Not Found)
http://nodesocketapp-dodan.rhcloud.com/components/font-awesome/css/font-awesome.css Failed to load resource: the server responded with a status of 404 (Not Found)

I'm also getting the follow nodejs.log:
image

Nevermind, I believe I have found the solution:
http://www.tamas.io/deploying-a-node-jssocket-io-app-to-openshift/