This will simplify some future work (regarding reorganizing the code into
a package, etc.) so that we don't have to try to simultaneously support
running as both a script and as a module.
pip-compile --no-index --generate-hashes --allow-unsafe
run: require-venv
- python3 ./turbot.py
+ FLASK_APP=turbot FLASK_DEBUG=true flask run
turbot.wsgi: turbot.wsgi.in Makefile
envsubst < turbot.wsgi.in > turbot.wsgi
@slack_events.on("error")
def handle_error(error):
app.logger.error("Error from Slack: " + str(error))
-
-if __name__ == '__main__':
- app.run(debug=True)