Application error after deploying Meteor 1.0 application on heroku

I am trying to deploy the meteor.js (v 1.0) application on heroku using the following buildpack:
https://github.com/AdmitHub/meteor-buildpack-horse
and following this guide:
http://www.growthux.com/ux-html-css-js-growth-hack/installing-meteor-on-heroku

My application is more like a static website, I use the database to create a simple back office:
- saving admin paths and images, which are then dynamically displayed in my templates.

After creating my application on Heroku, set the variable ROOT_URL, set the variable MONGO_URL = to my external db on MONGO HQ (also try the mongo lab, same problem) and finally click on Heroku, I get this error message when I visit the URL :

Application error

An error has occurred in the application and your page could not be submitted. Please try again in a few minutes.

If you own the app, check your logs for details.

So I did:

2014-11-10T17: 10: 23.825922 + 00: 00 heroku [web.1]: Termination of the process with SIGKILL 2014-11-10T17: 10: 23.825723 + 00: 00 heroku [web.1]: error R10 (load timeout ) → Failed to bind the web process to $ PORT within 60 seconds after starting
2014-11-10T17: 10: 24.584852 + 00: 00 heroku [web.1]: the state has changed from the beginning to the broken 2014-11-10T17: 10: 24.574995 + 00: 00 heroku [web.1]: the process has completed with the status 137 2014-11-10T17: 10: 26.415257 + 00: 00 heroku [router]: at = error code = H10 desc = "Application error" = GET path = "/" host = cle-meteor.herokuapp.com request_id = ffc312a1 -316d-4337-9165-caa492aa7c15 fwd = "80.13.242.126" dyno = connect = service = status = 503 bytes =

Not sure if I did something wrong with the deployment process or if I need to rethink how my application interacts with the database when it is not running locally.
Any ideas?

+8
mongodb deployment meteor heroku
source share
1 answer

I had a similar problem, it turned out that I disabled "http: //" from ROOT_URL.

Your journal posts are pretty general, is there anything before that?

Here, as I received the meteor's "todos" application, working on the hero and the Mongolab.


Meteor on Hereka

Set meteorite

curl install.meteor.com | /bin/sh 

Add a meteor to our path so that we can run the "meteor" command from anywhere.

clone an existing meteor application into the heroku folder.

 meteor create --example todos heroku 

Go to the meteorite application folder.

 cd heroku 

I added a package.json file that looks like this.

 { "name": "myapp", "version": "0.0.1", "engines": { "node": "0.10.33", "npm": "1.4.23" }, "dependencies": { "fibers": "1.0.0" } } 

go to our home folder. We want to return to our previous place.

 pushd ~ 

get the heroku client and install it.

 wget http://assets.heroku.com/heroku-client/heroku-client.tgz tar -zxvf heroku-client.tgz export PATH=${PATH}:${HOME}/heroku-client/bin 

Return to the previous place.

 popd 

Enter the hero.

 heroku login 

SKIP THIS PART IF YOU ALREADY HAVE AN ACCOUNT DOWNLOAD WITH YEROK AND GITBOUNDS.

Add your public SSH key to the hero (if you haven't already)

 heroku keys:add ~/keys/heroku_public_key_ssh.txt 

(Manually) Verify that the public SSH key is also added to your GitHub account.

If you are using ssh-agent, make sure that the corresponding private SSH key is loaded

 ssh-add ~/.ssh/id_rsa_heroku_github 

Set up our subfolder as the git repository that we will click on the hero. Sign your own heroku app name for "mikestodos" below.

 git init heroku git:remote -a mikestodos git add . git commit -a -m "first deploy" 

Create a heroku app. The mine is called Mikstodos.

 heroku create mikestodos --stack cedar --region us --buildpack https://github.com/AdmitHub/meteor-buildpack-horse.git 

Create a new mongolab and a new database user.

Set MONGO_URL for heroku as our MongoLabs database url. Format:

 heroku config:set MONGO_URL=mongodb://<my_mongouser>:<my_mongodbpassword>@<mymongoserver>:<mymongoport>/<mymongodbname> 

replace your own MongoLabs url below.

 heroku config:set MONGO_URL=mongodb://mikestodos:<dbpassword>@ds051980.mongolab.com:51980/mikestodos 

Set ROOT_URL for our heroku application.

 heroku config:set ROOT_URL=http://mikestodos.herokuapp.com 

Now click our application on the hero.

 git push heroku master 
+5
source share

All Articles