May 13, 2015 12:23
self.cache_get('index.html') will get you cached file that was set up in that line we discussed
May 13, 2015 12:20
maybe leave some configurations and edit self.zcache['index.html'] = fs.readFileSync('./index.html'); to something like self.zcache['index.html'] = fs.readFileSync('./public/index.html'); where your static files will be
May 13, 2015 12:19
can't help with openshift code though
May 13, 2015 12:19
take a look at the simple static files serving with express stackoverflow.com/a/10444923/2866570
May 13, 2015 12:17
I am not sure, but it seems half of the openshift code can be removed
May 13, 2015 12:14
it seems all you errors come of a mess between express and openshift code
May 13, 2015 12:09
Are you sure you need all that openShift code?
May 13, 2015 12:09
Checkout that line I mentioned
May 13, 2015 12:08
Do you have index.html in the root folder? This line requires it self.zcache['index.html'] = fs.readFileSync('./index.html');
May 13, 2015 12:08
Any logs from the server?
May 13, 2015 12:08
I thought OpenShift is just a cloud hosting
May 13, 2015 12:08
There is no built in function in Node to serve static files. Your either code it yourself which wouldn't be hard, either use libraries (e.g node-static)
 

PHP

Support group for those afflicted with PHP. Don't ask to ask, ...
Nov 4, 2013 19:07
plenty of them, google vnc