From f6254a6c5376e4e77686cf860d22a0a62274822b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Mart=C3=ADnez=20Portela?= Date: Mon, 26 Sep 2022 23:44:22 +0200 Subject: [PATCH] Add selectable port on autoserve script. --- scripts/autoserve.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/autoserve.py b/scripts/autoserve.py index 6e69025..4c7739e 100644 --- a/scripts/autoserve.py +++ b/scripts/autoserve.py @@ -10,7 +10,7 @@ import select import inotify.adapters -PORT = 8000 +PORT = int(os.getenv('PORT', 8000)) THIS_DIR = os.path.dirname(os.path.abspath(__file__))