Skip to content

Commit

Permalink
Shift the app.run() call to the dronedemo script entrypoint to avoid …
Browse files Browse the repository at this point in the history
…confusion.
  • Loading branch information
Greg Taylor committed Feb 9, 2016
1 parent 8f43110 commit 5388ffb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions dronedemo/main.py
Expand Up @@ -5,7 +5,3 @@
@app.route("/")
def hello():
return "Hello World!"


if __name__ == "__main__":
app.run(host='0.0.0.0', port=5000)
2 changes: 1 addition & 1 deletion dronedemo/scripts/dronedemo.py
Expand Up @@ -2,4 +2,4 @@


def cli_entry():
app.run()
app.run(host='0.0.0.0', port=5000)

0 comments on commit 5388ffb

Please sign in to comment.