Why does running the Flask dev server run itself twice?

前端 未结 6 2107
南旧
南旧 2020-11-22 01:39

I\'m using Flask for developing a website and while in development I run flask using the following file:

#!/usr/bin/env python
from datetime import datetime
         


        
6条回答
  •  北海茫月
    2020-11-22 02:21

    One of the possible reason why the Flask app run itself twice is a configuration of WEB_CONCURRENCY setting on Heroku. To set into one, you can write in console heroku config:set WEB_CONCURRENCY=1

提交回复
热议问题