Just had a very frustrating day. Was getting a deployment error on Heroku with a Meteor app I’m making.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
I was using the build pack at https://github.com/srbartlett/heroku-buildpack-meteor due to its support for Meteor 1.3.
The issue seems to be that the
npm-bcrypt atmosphere package doesn’t force a recompliation of the npm
bcrypt package via
node-gyp (I could be wrong here, but that’s what it seems like). It seems that the atmosphere package includes the wrong (or a fixed?) architecture, where as what we actually need is to recompile for the current target. To fix this, I’ve altered the buildpack to remove the bundled
bcrypt package, reinstall from source, and copy back to the bundled location. The reinstall from source seems to force
node-gyp to compile for the correct architecture.
My altered buildpack is available at https://github.com/rickerbh/heroku-buildpack-meteor if anyone wants it.