Skip to content

Commit

Permalink
changed code for production env
Browse files Browse the repository at this point in the history
  • Loading branch information
yash1337 committed Aug 3, 2018
1 parent 856de34 commit 2de5ab2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
load_env_variables()

app = Flask(__name__)
app.config.from_object(DevelopmentConfig)#loading config data into flask app from config object.
app.config.from_object(ProdConfig)#loading config data into flask app from config object.
api = Api(app)

#reflecting classes
Expand Down Expand Up @@ -94,4 +94,4 @@ def helloworld():


if __name__ == '__main__': #running on local server. This needs to change for prod
app.run(debug=True)
app.run()

0 comments on commit 2de5ab2

Please sign in to comment.