Hacker News new | ask | show | jobs
by JonAtkinson 5070 days ago
The first line of this post mentions:

"Phusion Passenger is an Apache and Nginx module for deploying Ruby and Python web applications."

... yet I can't see any further mention of Python support in any of the linked roadmap posts, or on https://www.phusionpassenger.com/enterprise - does anyone have any more information about Python support?

3 comments

Python support is in beta. We've actually already supported Python since 1.0, and it pretty much worked, but it remained an experiment and felt a little unpolished. Today, we've officially elevated it to "beta" status, meaning that it isn't terribly well documented yet, and may not feel as polished as Ruby support, but generally works well. We will publish blog articles and documentation about Python support in the near future. If you would like to stay up to date, please subscribe to our newsletter at http://eepurl.com/nXXrL

In a nutshell, you put your WSGI application code in passenger_wsgi.py. Point the virtual host's document root to the 'public' directory, and it just works. Very similar to Rack/Rails support, with passenger_wsgi.py substituting config.ru. See this for an example of Django on Phusion Passenger: https://github.com/kwe/passenger-django-wsgi-example/

When I looked at this around a year ago, there was surprisingly little code involved with supporting Python/WSGI. I was interested in adding support for Perl/PSGI; I decided that would take me longer than I had free time to commit, but for someone with more knowledge it might be a quick project and a real boon for running Perl web applications on shared hosting.
We've supported Python for quite a long time, we made a bit more public here: http://blog.phusion.nl/2012/04/13/a-sneak-preview-of-phusion...

Basically you can just drop in a WSGI python app, and we will serve it up :)