So, I meant creating a cron job on my prototype Flask application running on Heroku. I found on the Internet that the best way is to use Flask-Script, but I see no reason to use it. Do I get easier access to my application logic and storage information? And if I use Flask-Script, how can I organize it around my application? I am using it right now to start my server without knowing the benefits. My folder structure is as follows:
/app /manage.py /flask_prototype all my Flask code
Should I put 'script.py' to launch Heroku's scheduler in the application folder at the same level as manage.py? If so, will I get access to the models defined in flask_prototype?
Thanks for any info.
source share