共享主机上的 Web.py
我刚刚使用非常酷且简约的 web.py
构建了一个小型应用程序。
我正在使用廉价的共享托管包(在 WebFaction 上)并通过 virtualenv 安装了 web.py。我无法使用系统 python,因为我需要额外的软件包,而我不允许将这些软件包安装到系统 python 中。
所以现在我开始我的应用程序,
/home/me/mypython/python myapp.py <myport>
这感觉像是一个麻烦的解决方案,并且我不确定此设置可以占用多少流量。有一般提示吗?
提前致谢
I just built a small app with the very cool and minimalistic web.py
.
I am using a cheap shared hosting package (at WebFaction) and have installed web.py via virtualenv. I cannot use the system python since I need additional packages which I'm not allowed to install into the system python.
So now I start my app with
/home/me/mypython/python myapp.py <myport>
It feels like a cumbersome solution, and I'm not sure how much traffic this setup can take. Any general hints?
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您不使用 fastcgi 有什么原因吗?这可能比尝试使用一些高编号端口要好得多,特别是因为您的网络主机可能对此不太满意。这篇文章中有一些关于这样做的注释(在 dreamhost 上,但对您来说应该类似):
http: //thefire.us/archives/261
Is there a reason you're not using fastcgi? That's probably considerably better than trying to use some high-numbered port, particularly since your webhost may not be very happy about that at all. There are a few notes on doing that (on dreamhost, but it should be similar for you) in this post:
http://thefire.us/archives/261