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
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
WEB_CONCURRENCY
heroku config:set WEB_CONCURRENCY=1