diff --git a/app/server.py b/app/server.py old mode 100644 new mode 100755 index 63c9b3a..e96937b --- a/app/server.py +++ b/app/server.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python3 from flask import Flask, request, abort from voipms.api import Client import did, sms @@ -28,3 +29,8 @@ def set_sms(): abort(403) did = request.args.get('did') return sms.get_sms(client, did) + + +if __name__ == "__main__": + from waitress import serve + serve(app, host="0.0.0.0", port=8080) diff --git a/requirements.txt b/requirements.txt index ec88332..265f5ea 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ voipms-python flask +waitress requests \ No newline at end of file