add hosting

This commit is contained in:
Nyx 2025-02-24 19:40:41 -06:00
parent 05ae5e67ea
commit 7bf20cff3b
2 changed files with 11 additions and 1 deletions

10
app.sh Executable file
View file

@ -0,0 +1,10 @@
#!/usr/bin/env sh
set -eu
main() {
cd site
waitress-serve 'app.app' --port=8041 &
}
main "$@"

View file

@ -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)