Skip to content

Commit

Permalink
app: add app entrypoint
Browse files Browse the repository at this point in the history
This allows to run the app inside a WSGI server which needs an app
entrypoint.

Signed-off-by: Micha Moskovic <[email protected]>
  • Loading branch information
michamos committed Oct 24, 2018
1 parent 59081db commit 3207d5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion inspire_classifier/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ def page_not_found(e):
}, 404


app = create_app()

if __name__ == '__main__':
app = create_app()
app.run(host='0.0.0.0')
Empty file removed tests/.gitkeep
Empty file.

0 comments on commit 3207d5d

Please sign in to comment.