how to add your mongo env variable to heroku code example Example: mongodb add on heroku $ heroku addons:create mongolab:sandbox