In my python code I’ve got this code going trying to run socket mode with slack bolt.
if name == “main”:
from threading import Thread
def run_slack_app():
SocketModeHandler(app, os.environ["SLACK_APP_TOKEN"]).start()
Thread(target=run_slack_app).start()
flask_app.run(host='0.0.0.0', port=int(os.environ.get("PORT", 3000)))
However everytime I deploy I get this message:
==> All detected ports bound to 10.204.204.252, localhost instead of 0.0.0.0, continuing to scan for open ports…
==> See the docs on specifying a port: Web Services | Render Docs
What am I doing wrong? Thanks a lot.