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
When you run npm install
locally, hiredis creates some files with paths that are specific to your machine. When you push these cached dependencies to Heroku, the build fails.
Waf: Entering directory `/Users/gaggina/Desktop/socket2/node_modules/socket.io/node_modules/redis/node_modules/hiredis/build'
You can get around this problem by removing the node_modules/hiredis
directory from source control, letting Heroku compile it anew:
git rm -rf node_modules/hiredis
rm -rf node_modules/hiredis
echo "node_modules/hiredis" >> .gitignore