Skip to content

Instantly share code, notes, and snippets.

@blakmatrix
Created July 3, 2012 09:07
Show Gist options
  • Save blakmatrix/3038654 to your computer and use it in GitHub Desktop.
Save blakmatrix/3038654 to your computer and use it in GitHub Desktop.
Getting Meteor todos up on nodejitsu/jitsu
meteor create --example todos
meteor bundle myapp.tgz
tar xzf myapp.tgz
cd bundle
(create package json with settings below)
jitsu databases create mongo <dbname>
(grab dbstring)
jitsu env set PORT 3000
jitsu env set MONGO_URL <dbstring>
jitsu deploy
{
"name": "meteor-todos",
"subdomain": "meteor-todos",
"scripts": {
"start": "node main.js"
},
"version": "0.0.0-1",
"engines": {
"node": "0.6.x"
},
"dependencies": {
"fibers": "0.6.x",
"qs": "~0.5.0",
"mime": "1.2.5",
"formidable": "~1.0.11",
"express": "~2.5.11",
"wordwrap": "0.0.2",
"sockjs": "~0.3.1",
"mongodb": "~1.0.2",
"connect": "1.8.7",
"gzippo": "0.1.4",
"optimist": "0.3.1",
"handlebars": "1.0.5beta",
"useragent": "1.0.6"
},
"noAnalyze": true
}
@blakmatrix
Copy link
Author

took me a while to get this deployed on nodejitsu as I had to get the right versions of packages, as normal npm installs include a package that breaks the app, I was unable to determine what it was, but it was one of the guys required in server.js.

@lgarcia
Copy link

lgarcia commented Mar 3, 2013

You have to create the app before doing any env set to jitsu:

jitsu apps create myapp

@dimfisch
Copy link

dimfisch commented Apr 5, 2013

Does the fact that Meteor just came out with a new version make any difference? The Heroku buildpack isn't working anymore, so I'm thinking about switching to NodeJitsu...

@jamesonquinn
Copy link

Doesn't work anymore due to this bug: laverdet/node-fibers#94

@christian-fei
Copy link

Wrote this article on how I deployed my Meteor application with demeteorizer on nodejitsu
http://christian-fei.com/tutorials/the-ultimate-guide-to-deploying-a-meteor-project/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment