Skip to content
This repository was archived by the owner on Jan 10, 2023. It is now read-only.

Commit

Permalink
Run scripts now use waitress, since it's multithreaded and windows-co…
Browse files Browse the repository at this point in the history
…mpatible.
  • Loading branch information
falquaddoomi committed Aug 26, 2019
1 parent 25490ce commit 2e4dd4d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
5 changes: 5 additions & 0 deletions run_dev_site.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

export FLASK_APP=sequencer
export FLASK_ENV=development
flask run
2 changes: 1 addition & 1 deletion run_site.bat
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
set FLASK_APP=sequencer
set FLASK_ENV=development
flask run
python waitress_server.py
3 changes: 1 addition & 2 deletions run_site.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env bash

export FLASK_APP=sequencer
export FLASK_ENV=development
flask run
python waitress_server.py
2 changes: 1 addition & 1 deletion waitress_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

from waitress import serve
from sequencer import create_app
serve(create_app(), host='0.0.0.0', port=5000)
serve(create_app(), host='0.0.0.0', port=5000, threads=16)

0 comments on commit 2e4dd4d

Please sign in to comment.