V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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
awang
V2EX  ›  Python

忍不住问下大家的web应用环境是如何配置的

  •  
  •   awang · 2013-01-16 18:00:26 +08:00 · 2969 次点击
    这是一个创建于 4123 天前的主题,其中的信息可能已经有所发展或是发生改变。
    这么做是基于怎样的考量?

    看tornado和webapp2的文档是可以直接处理请求的,


    def main():
    from paste import httpserver
    httpserver.serve(app, host='127.0.0.1', port='8080')


    还需要和apache或nginx配合使用吗
    3 条回复    1970-01-01 08:00:00 +08:00
    cloudzhou
        1
    cloudzhou  
       2013-01-16 18:07:03 +08:00 via Android
    前端主要是为了路由和静态文件
    hartnett
        2
    hartnett  
       2013-01-17 00:43:35 +08:00
    后端用tornado多开几个进程,前端用nginx反向代理到不同的端口上。
    chon
        3
    chon  
       2013-01-17 00:51:54 +08:00 via Android   ❤️ 1
    tornado本身就是个web server,其他Python框架如Flask和Django自带的测试服务器性能就不见得能满足要求了。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2233 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 05:37 · PVG 13:37 · LAX 22:37 · JFK 01:37
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.