Code, Shiny Things, and Other Random Shit I Like

jamesreinknecht.com

Heroku is a pain because i'm a moron

I fought with heroku yesterday a bunch because I’m a moron. First I couldn’t get the database to talk to it.

Mostly because I didnt put in the environment variable.

var MONGODB_URI = process.env.MONGODB_URI || "mongodb://localhost/scraper";

because I’m a dope.

then i couldnt get my app to start. Because I didnt RTFM …..

var PORT = process.env.PORT || 3000;

So once i actually read the instructions and stop sucking, i got my app to start.

I usually don’t use heroku because I have a linode server, but it never hurts to be able to do cloud stuff, especially if its fast as hell and free.

repo: https://salty-brushlands-75876.herokuapp.com/
git: https://github.com/CaptainJimmy/scrapeTHIS