pip install -r requirements.txt
export FLASK_APP=main.py
export FLASK_ENV=development
在初始化前,需要先删除掉db文件和migrations文件夹。
flask db init
flask db migrate
flask db upgrade
flask run
redis-server --port 6379
celery worker -A celeryapp.task.celery_app
http post http://127.0.0.1:5000/api/tasks
http http://127.0.0.1:5000/api/tasks
- pytest
- webUI