Slim down requirements
Some checks failed
/ test (push) Failing after 3s

This commit is contained in:
phil 2024-12-01 05:01:45 +01:00
parent 01ef678823
commit 9558e45bed
3 changed files with 13 additions and 419 deletions

View file

@ -81,5 +81,11 @@ async def handle_sms(smsAlert: SmsAlert):
def main():
from uvicorn import run
from argparse import ArgumentParser
run(app, host="0.0.0.0", port=8025)
parser = ArgumentParser(description=__doc__)
parser.add_argument("-l", "--host", default="0.0.0.0")
parser.add_argument("-p", "--port", type=int, default=8025)
args = parser.parse_args()
run(app, host=args.host, port=args.port)