summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <mail2xengineering@protonmail.com>2020-09-03 11:11:31 +0200
committerxengineering <mail2xengineering@protonmail.com>2020-09-03 11:11:31 +0200
commit9a1ff86ab7eeb0cf5f21ebe927737a99675e7594 (patch)
tree902116db935cd060f5f1b73ef7506148a7bf25e9
parentdc601ffc21ac54895cb115ee0545cb7fad835c19 (diff)
downloadweb-template-9a1ff86ab7eeb0cf5f21ebe927737a99675e7594.tar
web-template-9a1ff86ab7eeb0cf5f21ebe927737a99675e7594.tar.zst
web-template-9a1ff86ab7eeb0cf5f21ebe927737a99675e7594.zip
Add Support for Unix Domain Sockets
-rwxr-xr-xmain.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.py b/main.py
index 40770bc..0cd7c61 100755
--- a/main.py
+++ b/main.py
@@ -44,5 +44,6 @@ def favicon():
if __name__ == '__main__':
- serve(app, listen='*:8080') # production server
+ serve(app, listen='*:8080') # production server / bind to port
+ #serve(app, unix_socket='/run/web-template/unix.sock') # production server / unix domain socket
#app.run() # debug server - NOT FOR PRODUCTION!