Create local database $ pipenv shell $ flask db upgrade Run project $ pipenv shell $ export FLASK_APP=app.py $ flask app Job (Cron task job) $ pipenv shell $ python process_files.py