使用flask做prompt工具网站的后台
- python 3.8.15
python -m venv tag_venv
source ./tag_venv/bin/activate
pip install -r requirements.txt
- 使用freeze
pip freeze > requirements.txt .
- 使用pipreqs
pip install pipreqs
pipreqs --encoding utf-8 ./ --force
or
pipreqs ./ --force
flask db init
export FLASK_APP=manage.py
flask db migrate -m 'change'
flask db upgrade
gunicorn --config gunicorn.conf.py app:app