Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
fixes db deployment issue on heroku. production db value needs to be …
Browse files Browse the repository at this point in the history
…set in production.js and removed db variable from all.js.
  • Loading branch information
thehashrocket committed Feb 17, 2014
1 parent f0508e3 commit 7edb6b8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion config/env/all.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ module.exports = {
description: 'Full-Stack JavaScript with MongoDB, Express, AngularJS, and Node.js',
keywords: 'mongodb, express, angularjs, node.js, mongoose, passport'
},
db: process.env.MONGOHQ_URL || process.env.MONGOLAB_URI,
root: rootPath,
port: process.env.PORT || 3000,
templateEngine: 'swig',
Expand Down
2 changes: 1 addition & 1 deletion config/env/production.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

module.exports = {
db: 'mongodb://localhost/mean',
db: process.env.MONGOHQ_URL || process.env.MONGOLAB_URI,
facebook: {
clientID: 'APP_ID',
clientSecret: 'APP_SECRET',
Expand Down

0 comments on commit 7edb6b8

Please sign in to comment.