Skip to content

Commit

Permalink
trying to fix mongodb connection error on heroku
Browse files Browse the repository at this point in the history
  • Loading branch information
nosovsh committed Oct 2, 2015
1 parent 292005c commit b0bdf73
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,8 @@
if os.environ.get('MONGODB_DB'):
app.config['MONGODB_SETTINGS'] = {
'db': os.environ.get('MONGODB_DB'),
'host': os.environ.get('MONGOLAB_URI')
'host': os.environ.get('PROD_MONGODB')
}
app.config['MONGODB_DB'] = os.environ.get('MONGODB_DB')
app.config['MONGODB_HOST'] = os.environ.get('MONGODB_HOST')
app.config['MONGODB_PORT'] = os.environ.get('MONGODB_PORT')
app.config['MONGODB_USERNAME'] = os.environ.get('MONGODB_USERNAME')
app.config['MONGODB_PASSWORD'] = os.environ.get('MONGODB_PASSWORD')
# app.config['DEBUG'] = False
app.config['SECRET_KEY'] = os.environ.get('SECRET_KEY')
app.config['SECURITY_PASSWORD_SALT'] = os.environ.get('SECURITY_PASSWORD_SALT')
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ gunicorn==18.0
httplib2==0.9
itsdangerous==0.22
mimerender==0.5.4
mongoengine==0.8.7
mongoengine==0.10.0
oauth2==1.5.211
passlib==1.6.2
pymongo==3.0.3
Expand Down

0 comments on commit b0bdf73

Please sign in to comment.