Giter Site home page Giter Site logo

fasterrunner's Introduction

FasterRunner

LICENSE travis-ci pyversions

FasterRunner that depends FasterWeb

本地开发环境部署

# install requirements.txt
pip install -r requirements.txt

# make migrations for fastuser、fastrunner、fasttask
python manage.py makemigrations fastrunner fastuser fasttask

# migrate for database
python manage.py migrate fastrunner
python manage.py migrate fastuser
python manage.py migrate fasttask

# runserver in dev
python manage.py runserver

Docker 部署 uwsgi+nginx模式

  1. docker pull docker.io/mysql:5.7 # 拉取mysql5.7镜像
  2. docker run --name mysql --net=host -d --restart always -v /var/lib/mysql:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=lcc123456 docker.io/mysql:5.7 --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci # 运行mysql容器
  3. 修改settings.py DATABASES 字典相关配置,密码为步骤2设置的MYSQL_ROOT_PASSWORD
  4. 连接数据库, 新建FasterRunner库
  5. docker build -t fastrunner:latest . # 构建docker镜像
  6. docker run -d --name fastrunner --net=host --restart always fastrunner:latest # 后台运行docker容器,默认后台端口5000
  7. docker exec -it fastrunner /bin/sh #进入容器内部
  8. 应用数据库表
# make migrations for fastuser、fastrunner、fasttask
python manage.py makemigrations fastrunner fastuser

# migrate for database
python manage.py migrate fastrunner
python manage.py migrate fastuser
python manage.py migrate fasttask

在线体验地址-可能不会和GIT最新代码同步哦,建议自己docker部署


FasterRunner 接口自动化测试平台

fasterrunner's People

Contributors

yinquanwang avatar xglh avatar

Watchers

hui-fan 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.