Code Monkey home page Code Monkey logo

eserviceglance's Introduction

建立Project Folder
    如JiraGlance,并用vscode打开
建立python虚拟环境
    vscode:终端->新终端->执行:python -m venv .env
选择python虚拟环境解释器
    vscode:查看->命令面板->输入选择:Python:Select Interpreter 选择解析器,选择后面带有('.env':venv)的解析器;
    左下角显示Python 版本('.env':venv)
安装包到虚拟环境
    以安装flask为例
    vscode:终端->新建终端(显示目录前带有(.env))->执行:pip install flask,终端中显示Successfully表示安装成功

建立Project files
    在新建立的文件中 建立 app.py 文件

运行测试
    vscode:终端->新建终端(显示目录前带有(.env))->执行:python -m flask run

将代码部署到linux服务器:
    默认情况下,Flask内置的开发服务器会监听本地机的5000端口,你可以使用127.0.0.1:5000或localhost:5000访问程序
    app.run()方法运行服务器应用,默认是只能在本机访问的!!!如果需要在其他机器上访问,需要修改为:app.run(host='0.0.0.0')
   
    app.py添加#!/usr/bin/env python3.6,用python执行脚本
    
    添加启动脚本server_run.sh,bash server_run.sh用于启动或者重启应用

eserviceglance's People

Contributors

zhongyoubo 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.