Re: Trying to understand about Paste and web-server requirements
On Jul 25, 11:25 pm, __wyatt [EMAIL PROTECTED] wrote: On Jul 25, 4:04 pm, walterbyrd [EMAIL PROTECTED] wrote: This really depends on what options your hosting company offers. You should check with them. Once you know what options are available, I'm sure many people here would be glad to give advice on those options. What would be the recommended configuration if there are no hosting limitations? I am working on setting some standards for deployment of pylons applications in my organization (we recently standardized on pylons) and there are many options ( a good thing) but no comparison / benchmarking / pros-cons of the potential solutions (that I have found). The following seem to be my available options: http://docs.pythonweb.org/display/pylonscookbook/Production+deployment+using+mod_python http://docs.pythonweb.org/display/pylonscookbook/Production+deployment+using+supervisor+Apache+as+a+reverse+proxy http://docs.pythonweb.org/display/pylonscookbook/Running+Pylons+with+SCGI+and+Lighttpd http://docs.pythonweb.org/display/pylonscookbook/Production+Deployment+Using+Apache,+FastCGI+and+mod_rewrite http://wiki.pylonshq.com/display/pylonscookbook/mod_wsgi+and+workingenv.py I would suggest that if FastCGI is all that's available, you might want to look into a different hosting company (e.g., WebFaction). Why? Under distribution and deployment on the Official Pylons Docs page (http://wiki.pylonshq.com/display/pylonsdocs/Home) under Distribution and Deployment heading, the most relevant document (http://wiki.pylonshq.com/display/pylonsdocs/Running+Pylons+apps+with +Webservers) primarily deals with FCGI. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: Trying to understand about Paste and web-server requirements
El mié, 25-07-2007 a las 19:08 -0700, Jose Galvez escribió: no you should be able to use mod_proxy, to server your application just as Cliff has suggested. That is my personally favorite method to use with apache. Jose I think apache/mod_wsgi is the way :) Greetings --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: Trying to understand about Paste and web-server requirements
I've never used mod_wsgi, how do you set it up? Jose On 7/26/07, Antonio Beamud Montero [EMAIL PROTECTED] wrote: El mié, 25-07-2007 a las 19:08 -0700, Jose Galvez escribió: no you should be able to use mod_proxy, to server your application just as Cliff has suggested. That is my personally favorite method to use with apache. Jose I think apache/mod_wsgi is the way :) Greetings --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: Trying to understand about Paste and web-server requirements
On Jul 25, 2:59 pm, Cliff Wells [EMAIL PROTECTED] wrote: It doesn't. Paste provides an HTTP server. You can let it serve directly, or, more likely, put it behind another HTTP server that can proxy (I personally recommend Nginx, but lots of people use Apache/mod_proxy or Lighttpd). But, since I'm using a shared host, which has apache (dreamhost), then I have to use fastcgi, correct? I don't think dreamhost has mod_proxy. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: Trying to understand about Paste and web-server requirements
On Wed, 2007-07-25 at 12:12 -0700, walterbyrd wrote: On So Pylons requires fastcgi or mod_python, just like django or turbogears. It should also be noted TurboGears doesn't require FastCGI or mod_python either, as CherryPy is both a framework and an HTTP server. Regards, Cliff --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: Trying to understand about Paste and web-server requirements
no you should be able to use mod_proxy, to server your application just as Cliff has suggested. That is my personally favorite method to use with apache. Jose walterbyrd wrote: On Jul 25, 2:59 pm, Cliff Wells [EMAIL PROTECTED] wrote: It doesn't. Paste provides an HTTP server. You can let it serve directly, or, more likely, put it behind another HTTP server that can proxy (I personally recommend Nginx, but lots of people use Apache/mod_proxy or Lighttpd). But, since I'm using a shared host, which has apache (dreamhost), then I have to use fastcgi, correct? I don't think dreamhost has mod_proxy. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: Trying to understand about Paste and web-server requirements
On Wed, 2007-07-25 at 12:12 -0700, walterbyrd wrote: On Jul 25, 6:04 am, Thomas Sidwick [EMAIL PROTECTED] wrote: Paste provides the glue that sticks these components together in a stack and allows them to communicate. Paste also provides a library of ready made middleware that can integrate functionality into your application. So Pylons requires fastcgi or mod_python, just like django or turbogears. It doesn't. Paste provides an HTTP server. You can let it serve directly, or, more likely, put it behind another HTTP server that can proxy (I personally recommend Nginx, but lots of people use Apache/mod_proxy or Lighttpd). The advantage of of proxying is that you can let the proxy server also serve up static content (images, css) and this will be *much* faster than letting Pylons serve it. There's been some discussion on this list whether FastCGI is any faster than proxying but the results appear to be inconclusive. Either way, proxying is typically a bit easier to setup than FastCGI. Regards, Cliff --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: Trying to understand about Paste and web-server requirements
On Jul 25, 4:04 pm, walterbyrd [EMAIL PROTECTED] wrote: On Jul 25, 2:59 pm, Cliff Wells [EMAIL PROTECTED] wrote: It doesn't. Paste provides an HTTP server. You can let it serve directly, or, more likely, put it behind another HTTP server that can proxy (I personally recommend Nginx, but lots of people use Apache/mod_proxy or Lighttpd). But, since I'm using a shared host, which has apache (dreamhost), then I have to use fastcgi, correct? This really depends on what options your hosting company offers. You should check with them. Once you know what options are available, I'm sure many people here would be glad to give advice on those options. I would suggest that if FastCGI is all that's available, you might want to look into a different hosting company (e.g., WebFaction). --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Trying to understand about Paste and web-server requirements
I've never used Pylons at all. I've just started reading about it. I'm trying to understand how Pylons uses Paste. Is Paste just a web- server to use for development? Or, is paste meant to be a replacement for apache? If paste is meant to be a replacement for apache, with that work with shared hosting? Does Pylons require mod_python, or fastcgi? Does Pylons require the web server be restarted, when the code is modified? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: Trying to understand about Paste and web-server requirements
Ok here goes, PEP 333 (http://www.python.org/dev/peps/pep-0333/) laid out a simple and universal interface between web servers and web applications or frameworks: the Python Web Server Gateway Interface (WSGI). WSGI defines two basic aspects of the web interface, a server for interacting either with the web directly or with a webserver, and a web API for creating applications. Paste is a framework for implementing WSGI applications. Paste takes care of configuring, starting and stopping WSGI applications. Pylons is a WSGI framework built on top of paste, you have to have paste to have pylons. Conversely there are several WSGI frameworks built with paste (Ian has written a couple of them). Paste essentially takes care of all the low level WSGI communication with the webserver, be it via a real http interface, fcgi interface or what ever. So paste is not meant to be a replacement for apache, although a WSGI application can certainly be served without apache, it can also be served with apache either via a proxy method (using either paste's http server or chreeypy's http server, or with apache2 via flup ajp interface) or via fastcgi. So pylons requires paste, and if you want to integrate pylons with apache this can be done with either: 1) proxy (http: paste or cherrypy, or ajp: flup) 2) fastcgi (flup) 3) scgi (flup) 4) mod_python (via its wsgi gateway) I hope I didn't confuse things more for you Jose walterbyrd wrote: I've never used Pylons at all. I've just started reading about it. I'm trying to understand how Pylons uses Paste. Is Paste just a web- server to use for development? Or, is paste meant to be a replacement for apache? If paste is meant to be a replacement for apache, with that work with shared hosting? Does Pylons require mod_python, or fastcgi? Does Pylons require the web server be restarted, when the code is modified? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---