title: Deploying Meteor app from OS X to Linux causes bcrypt issues
body: <p>I have just deployed my first production Meteor app, but ran into a pretty significant issue.  When I tried to run my app, I get the following error:</p>
  
  <pre><code>/home/hiapp/bundle/programs/server/node_modules/fibers/future.js:173
                          throw(ex);
                                ^
  Error: /home/hiapp/bundle/programs/server/npm/npm-bcrypt/node_modules/bcrypt/build/Release/bcrypt_lib.node: invalid ELF header
      at Module.load (module.js:356:32)
      at Function.Module._load (module.js:312:12)
      at Module.require (module.js:364:17)
      at require (module.js:380:17)
      at bindings (/home/hiapp/bundle/programs/server/npm/npm-bcrypt/node_modules/bcrypt/node_modules/bindings/bindings.js:74:15)
      at Object.&lt;anonymous&gt; (/home/hiapp/bundle/programs/server/npm/npm-bcrypt/node_modules/bcrypt/bcrypt.js:1:97)
      at Module._compile (module.js:456:26)
      at Object.Module._extensions..js (module.js:474:10)
      at Module.load (module.js:356:32)
      at Function.Module._load (module.js:312:12)
  </code></pre>
  
  <p>Through some research, it seems that the issue is that bcrypt is platform-specific, and because my development is on OS X 10.10, but my production server is on Ubuntu 14.04, there-in lies the problem.  My work around was to run <code>npm install bcrypt</code> from the programs/server folder, then copy that from <code>programs/server/node_modules/bcrypt</code> to <code>programs/server/npm</code>.  This seems like a lot of manual steps.</p>
  
  <p>I am just about to re-deploy my app with some fixes, and I am worried that I am going to have to again perform the same steps.  Is there a better way to deploy a Meteor app where you do not run into this issue?  My procedure currently is:</p>
  
  <ol>
  <li>Run <code>meteor build</code></li>
  <li>scp resulting tarball to my server (Digital Ocean)</li>
  <li>explode the tarball in my app users home directory</li>
  <li>ADDED STEPS: recompile bcrypt and copy the directory over as stated above</li>
  </ol>
  
  <p>I am guessing the auto-refresh will be broken as the first time the server tries to load the new libraries it will explode in fiery glory.  Would it be better to simply clone the GIT repo on the server and do the build straight from there, or can I use <code>mup</code> or any other tools to help smoothen the deployment process?</p>