socket.io + node.js on heroku

前端 未结 6 1230
后悔当初
后悔当初 2021-01-03 06:55

I\'m having some issues in compiling a socket.io app on heroku.

Thats the app.js file

var app = require(\'express\').createServer()
   , io = require         


        
6条回答
  •  一生所求
    2021-01-03 07:42

    WAAAAAAAIT A SECOND.

    I noticed after I ran grep -R hiredis . that under the directory ./node_modules/socket.io/node_modules there appears the folder redis. Apparently, socket.io is now shipping with redis built in, which messes with Heroku.

    Try fooling around with removing the redis folder from socket.io's node_modules folder. I solved the issue by removing socket.io altogether.

提交回复
热议问题