Bug on application manager with socket.io?
Hi,
After struggling A LOT, I finally was able to figure out the solution for my topic here:
common sense tells you to enter "myapp", right? Well, IGNORE that because if you enter anything else than a single / your socket.io app wont work. In order to be able to access it from the folder you want you must declare it within the app.js file like this:
[CODE=javascript]app.get('/myapp', (req, res) => {
then your app will work. However, notice than your ENTIRE DOMAIN will be now under the node.js, server, not only the folder where you access the app from which I dont think is right. I dont know whether is a cpanel bug or a socket.io bug but I think its something it must be fixed because it will save the users HOURS of frustration. Thank you.
then your app will work. However, notice than your ENTIRE DOMAIN will be now under the node.js, server, not only the folder where you access the app from which I dont think is right. I dont know whether is a cpanel bug or a socket.io bug but I think its something it must be fixed because it will save the users HOURS of frustration. Thank you.
Please sign in to leave a comment.
Comments
0 comments