Add selectable port on autoserve script.

This commit is contained in:
Sergio Martínez Portela 2022-09-26 23:44:22 +02:00
parent 8ef3c5a636
commit f6254a6c53

View File

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