diff --git a/app.sh b/app.sh new file mode 100755 index 0000000..43f9e52 --- /dev/null +++ b/app.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env sh + +set -eu + +main() { + cd site + waitress-serve 'app.app' --port=8041 & +} + +main "$@" diff --git a/site/app.py b/site/app.py index 93fad60..8006a23 100644 --- a/site/app.py +++ b/site/app.py @@ -94,4 +94,4 @@ def todo(): return render_template('todo.html') if __name__ == '__main__': - app.run(host="0.0.0.0", port=8080) + app.run(app=app, server="flask", host="0.0.0.0", port=8080)