Code Monkey home page Code Monkey logo

kunshansystem's Introduction

Patent Map System

1. Pycharm运行配置说明

因为flask的app对象被封装在了web/_init_.py中的工厂方法create_app中,所以需要进行一些设置才可以运行

  1. 在Pycharm中对Flask server设置(可断点调试):
  1. 打开Edit Configuration
  2. 设置Target type => Script path。
  3. 设置Target => wsgi.py的完整路径。
  1. 在cmd中设置(无法断点调试):
  1. set FLASK_APP=web
  2. flask run

以上的方法大致类似,flask的自动搜索机制会自动从FLASK_APP的值定义的模块中寻找名称为create_app()或make_app()的工厂函数

2. 第三方库

  1. Bootstrap-Flask 该库是bootstrap4的封装,提供了若干个jinja2函数。

3. Docker部署

目前使用到了docker-compose,目前暂时只生成了一个flask容器,flask容器可以通过5000端口访问,该容器并未做端口映射 nginx负责反向代理,负责转发请求和flask容器,默认绑定80端口。

kunshansystem's People

Contributors

meng950813 avatar sky94520 avatar zhangshuo1996 avatar zhantanfeng avatar

Watchers

James Cloos 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.