Athena Wisdom
Athena Wisdom

Reputation: 6871

Rebuild npm modules when deploying Meteor app

When deploying meteor app to my server, I first meteor build it, then untar the bundle on the server.

Next I do

cd server && npm install

But the npm packages included by meteorhacks:npm are not built? How can we rebuild them?

Upvotes: 2

Views: 579

Answers (1)

David Weldon
David Weldon

Reputation: 64342

I just tried this from a clean checkout of a project that uses npm:

  1. Bundle your app to produce a tar.gz file in another directory.
  2. When you extract your tar.gz file you should have a directory called bundle.
  3. Your custom npm modules will be located in bundle/programs/server/npm/npm-container/node_modules/
  4. To install fibers do: cd bundle/programs/server/ && npm install

Upvotes: 3

Related Questions