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('')