diff --git a/api-server/app.py b/api-server/app.py index 7dd7d33..8963b70 100644 --- a/api-server/app.py +++ b/api-server/app.py @@ -44,7 +44,8 @@ def log_message(level, message, meeting=''): setup_webrtc_sockets(socketio) if __name__ == '__main__': + import os if os.getenv('TESTING', True): - app.run(host='0.0.0.0', port=5000, allow_unsafe_werkzeug=True) + socketio.run(app, debug=True, allow_unsafe_werkzeug=True) else: - app.run(host='0.0.0.0', port=5000) \ No newline at end of file + socketio.run(app, debug=True) \ No newline at end of file