add hosting
This commit is contained in:
parent
05ae5e67ea
commit
7bf20cff3b
2 changed files with 11 additions and 1 deletions
10
app.sh
Executable file
10
app.sh
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/env sh
|
||||
|
||||
set -eu
|
||||
|
||||
main() {
|
||||
cd site
|
||||
waitress-serve 'app.app' --port=8041 &
|
||||
}
|
||||
|
||||
main "$@"
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue