GithubHelp home page GithubHelp logo

2018ciscn_vygshop's Introduction

H1TerHub CISCN A&D Web

打包步骤

  1. sshop, *.py 移动到ciscn_deploy/www
  2. sshop/captcha填充验证码数据集
  3. ciscn_deploy填充dumb-init.deb(下载地址https://github.com/Yelp/dumb-init/releases/)和phantomjs(下载地址https://bitbucket.org/ariya/phantomjs/downloads/,解压其中的bin)(辣鸡网络只能这么加速了……)
  4. 现在有ciscn_*三个文件夹,将这三个文件夹打包即可。
  5. 打包完将源码撤回移动到根目录

部署

  1. 切换到ciscn_deploy
  2. 运行docker-compose build (build过程中phantomjs可能会因权限问题无法运行,添加运行权限重新构建即可)
  3. 运行docker-compose up -d,程序将在后台运行
  4. 宿主使用docker ps查看容器ID后可用docker exec -it ID /bin/sh连接到容器

需要的环境变量

product 存在该参数时Tornado内debug=False,docker内存在

FLAAAAAG你懂的,可通过docker运行参数修改

api_url(模拟)短信接口地址,docker内为http://127.0.0.1:8200/api/send_sms

2018ciscn_vygshop's People

Contributors

cancergary avatar jalinwang avatar rmanluo avatar ynyyn avatar

Watchers

 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.