예제 #1
0
import logging
from slack import app

if __name__ == "__main__":
  app.run()
else:
  try:
    gunicorn_logger = logging.getLogger("gunicorn.error")
    app.logger.handlers = gunicorn_logger.handlers
    app.logger.setLevel(gunicorn_logger.level)
  except NameError:
    pass

application = app
예제 #2
0
from slack import app

if __name__ == '__main__':
    app.run(debug=True)

예제 #3
0
파일: run.py 프로젝트: womenabc/slack-meme
from slack import app
import os

port = int(os.environ.get('PORT', 5000))
app.run(host='0.0.0.0', port=port)
예제 #4
0
from slack import app
app.run()