From a74d76f496b9002d663b5c0bd0e141e459490b1c Mon Sep 17 00:00:00 2001 From: b0g3r Date: Tue, 25 Oct 2016 17:41:50 +0300 Subject: [PATCH] 5 attempt (https://github.com/nickoala/telepot/issues/165) --- Procfile | 2 +- main.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Procfile b/Procfile index 6493766..d79fee8 100644 --- a/Procfile +++ b/Procfile @@ -1,2 +1,2 @@ -web: gunicorn main:app +web: gunicorn main:app --log-file - init: python model.py \ No newline at end of file diff --git a/main.py b/main.py index 54d1630..748c3b1 100644 --- a/main.py +++ b/main.py @@ -128,6 +128,7 @@ def webhook_get_updates(): def init(): if os.environ.get('LOCAL') != 'YES': + time.sleep(2) bot.setWebhook('%s/%s/%s' % (url, 'webhook', token)) else: bot.setWebhook('')