commands.txt 712 B

12345678910111213141516171819202122232425
  1. . ./app.sh
  2. source ./app.sh
  3. . <(cat app.sh)
  4. # supervisord -c manager.conf
  5. flask db init
  6. flask db migrate
  7. flask db upgrade
  8. pip install -i https://mirrors.cloud.tencent.com/pypi/simple --upgrade pip
  9. pip config set global.index-url https://mirrors.cloud.tencent.com/pypi/simple
  10. 可能会用到:
  11. ddddocr==1.1.0 ; sys_platform == 'win32'
  12. ddddocr==1.0.8 ; sys_platform != 'win32'
  13. 废弃操作仅限 flask-migrate==2.7.0:
  14. # # 导入数据迁移核心类
  15. # from flask_migrate import Migrate
  16. # from flask_script import Manager
  17. # manager = Manager(app)
  18. # 初始化数据迁移
  19. # migrate = Migrate(app, db)
  20. # manager.add_command('sql', MigrateCommand)
  21. # python app.py sql migrate -m “init”
  22. # python app.py sql upgrade