-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to use gunicorn with both backend frontend
- Loading branch information
spelhate
committed
May 26, 2020
1 parent
39ba175
commit c75550e
Showing
2 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from werkzeug.middleware.dispatcher import DispatcherMiddleware | ||
from werkzeug.serving import run_simple | ||
from frontend import app as front | ||
from backend import app as back | ||
|
||
application = DispatcherMiddleware(front, {'/api': back }) | ||
|
||
if __name__ == '__main__': | ||
run_simple( | ||
hostname='localhost', | ||
port=5000, | ||
application=application, | ||
use_reloader=True, | ||
use_debugger=True, | ||
use_evalex=True) |