Anders Kitson
Anders Kitson

Reputation: 1545

I am trying to bundle a meteor app into a .tgz

I am following a tutorial from the discover meteor book, and I am hitting a roadblock. I cloned my project into /home/meteor on my digital ocean ubuntu 13 droplet. The instructions ask me to do the following next.

$ cd mymeteorapp 
$ mrt bundle ../bundle.tgz 
$ cd ..
$ tar -zxvf bundle.tgz

However after I run the second command mrt bundle ../bundle.tgz I get the following error

root@bray:/home/meteor# mrt bundle ../bundle.tgz
/usr/bin/env: node: No such file or directory

Not sure why I am getting this error, have been googling around for a while. Any Ideas?

UPDATE

Before the instructions above I am asked to install node.js and mongodb, assuming that worked properly. They ask me to do this

git clone https://github.com/DiscoverMeteor/microscope.git, in /home/meteor where the github repository is mine.

Than these instructions, maybe they will explain something I missed and didn't do

The next step is to bundle your app, i.e. generate a fully-contained Node application in a tarball. It is certainly possible to bundle your app in your development environment and then just transmit the tarball, but for now we'd recommend checking out the actual code on the server. This approach has a couple of advantages:

It's Git-based (just specify your project's repository) It doesn't require you to have Meteor installed locally It doesn't require re-building packages like Fibers (which are platform-dependent) And finally, it should allow for hot code fixes (your Node server won't stop when deploying your app) To bundle and untar our app (note that it would actually be handy for Meteor to be able to "bundle as a directory, not a tarball"), we do:

-----------

Just realized that node may not be installed at all, I ran node --version and got a weird response

root@bray:/home/meteor# node --version
The program 'node' can be found in the following packages:
 * node
 * nodejs-legacy

-----------

Upvotes: 0

Views: 715

Answers (1)

Anders Kitson
Anders Kitson

Reputation: 1545

Ok so Node wasn't installed for some reason, even though I followed the tutorial instructions. I ended up installing nvm with build-essential and libssl-dev.

Upvotes: 1

Related Questions