Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Running a meteor app on Nodejitsu

Deployed a meteor app to a Nodejitsu trial environment but failed to get it to run. Upon executing jitsu deploy from my meteor app directory I get the following error: ReferenceError: Meteor is not defined.

If you have gotten a meteor app up and running on Nodejitsu, please highlight the steps you took and dependencies I might be missing. I will use your suggestions and try to get my app to run. Thanks.

// package.json contents
{
  "name": "test123-meteor",
  "subdomain": "user123.test123-meteor",

/*
* Really not sure about this line here...
*/
  "scripts": {
    "start": "node client/controllers/GeneralController.js"
  },
  "version": "0.0.1-2",
  "engines": {
    "node": "0.8.x"
  }
}
like image 294
eric Avatar asked Dec 09 '12 23:12

eric


2 Answers

I tried this today and didn't have a problem when using demeteorizer. I wrote the following small article about it on Meteorpedia which includes my custom build script which greatly simplifies deployment.

http://www.meteorpedia.com/read/Nodejitsu

like image 95
gadicc Avatar answered Sep 29 '22 11:09

gadicc


Meteor won't run on nodejitsu until this bug is fixed: node-fibers won't build on SmartOS. If you want it, you should star the bug or even look into fixing it. (Naively, it looks like the kind of thing that needs more persistence than brilliance; a build issue on just that one OS for a package which builds unmodified on over 5 other OSs.)

like image 27
Jameson Quinn Avatar answered Sep 29 '22 09:09

Jameson Quinn