add our mongo api key to heroku config for deployment code example Example: mongodb add on heroku $ heroku addons:create mongolab:sandbox