This repository has been archived on 2025-07-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
circuitbodge/circuit-laundry-notifier/__main__.py
AKP 0f83fec132
Configuration tweaks
Signed-off-by: AKP <tom@tdpain.net>
2022-11-08 11:10:45 +00:00

11 lines
300 B
Python

import os
from web import new
DEBUG = bool(os.environ.get("CIRCUIT__DEBUG", False))
PORT = int(os.environ.get("CIRCUIT__HTTP_PORT", 8080))
HOST = os.environ.get("CIRCUIT__HTTP_HOST", "127.0.0.1")
if __name__ == "__main__":
app = new(debug=DEBUG)
app.run(port=PORT, host=HOST, debug=DEBUG)