GithubHelp home page GithubHelp logo

apitestmanage's Introduction

ApiTestManage

如有疑问可联系qq:362508572

Environment

python => 3

start

开发环境:运行manage_pc.py 生产环境:运行manage_linux.py

生产环境下的一些配置

由于懒,直接把flaskapi.conf文件替换nginx下的nginx.conf

运行下面命令即可启动

gunicorn -c gun_config.py manage_linux:app

数据库的迁移

第一次使用: 初始化:(venv) python manage_pc.py db init 这个命令会在项目下创建 migrations 文件夹,所有迁移脚本都存放其中。

创建第一个版本:(venv) $ python manage_pc.py db migrate

运行升级 (venv) $ python manage_pc.py db upgrade

后缀更新: 更新表格的字段 (models.py) 再次运行一下 db migrate -> 相当于commit 更新到/migrate目录 db upgrade -> 数据库会更新

apitestmanage's People

Contributors

pencil1 avatar leo1001 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.