Skip to content

Commit

Permalink
Add postgresql service to travis
Browse files Browse the repository at this point in the history
  • Loading branch information
olawalejarvis committed Jul 29, 2018
1 parent 7c5ec99 commit c84ff7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion run.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

if __name__ == '__main__':
env_name = os.getenv('FLASK_ENV')
port = os.getenv('PORT')
app = create_app(env_name)
# run app
app.run(host='0.0.0.0')
app.run(host='0.0.0.0', port=port)
1 change: 1 addition & 0 deletions src/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class Production(object):
"""
DEBUG = False
TESTING = False
SQLALCHEMY_TRACK_MODIFICATIONS=False
SQLALCHEMY_DATABASE_URI = os.getenv('DATABASE_URL')
JWT_SECRET_KEY = os.getenv('JWT_SECRET_KEY')

Expand Down

0 comments on commit c84ff7a

Please sign in to comment.