推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
PythonAnswer
V2EX  ›  Python

Win 下快速部署 WSGI 应用?

  •  
  •   PythonAnswer · Oct 17, 2018 · 3216 views
    This topic created in 2911 days ago, the information mentioned may be changed or developed.
    各位大大, 求教:

    我在公司办公 pc 上写了一些 crud 应用, 小组内的同事会帮我更新 /审阅数据.
    想把 flask 直接部署在这台机器上, 系统是 win10, 内网直接 ip 访问.

    方案 1
    用 nssm 直接启动 python 服务, 直接调 app.run() 跑应用.

    方案 2
    win10 docker 部署



    大家有过相同的经历+解决方案吗? 希望越简单越好.
    4 replies  •  2018-10-18 10:09:22 +08:00
    Qzier
        1
    Qzier  
       Oct 17, 2018 via iPhone
    win10 的 wsgi server 不多,除了自带的,要么就是 tornado
    qile11
        2
    qile11  
       Oct 18, 2018 via Android
    我是用 bottle 直接编译为 exe 运行,flask 好像编译麻烦
    iango
        3
    iango  
       Oct 18, 2018
    之前看资料,可以通过 VS + IIS 部署。但我一直没成功。
    lalalakakaka
        4
    lalalakakaka  
       Oct 18, 2018
    wsgi 服务器用 gevent,防止并发出问题。
    部署的话就是 virtualenv 一下然后打包拷到机器上,最后写个批处理自动运行就行~
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2317 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 15:47 · PVG 23:47 · LAX 08:47 · JFK 11:47
    ♥ Do have faith in what you're doing.