简体   繁体   中英

When Rails require mod_rails, what about Django, TurboGears, Symfony, CakePHP? Can they deploy using mod_python and mod_php?

When Rails applications seem hard to deploy (or used to be), what about Django, TurboGears, Symfony, CakePHP -- can they be simply deployed using mod_python or mod_php? Actually, won't it need something like a mod_django so that the code can run in a "Django" environment? (Just like Rails' script/console or Rails 3's rails console )

Django applications can certainly be deployed with minimum fuss using mod_python .

That said, experienced people will tell you to use the more lightweight and efficient mod_wsgi instead of mod_python . This too can be done with minimum effort. I have done it on multiple occasions and app deployment was always the least of my worries.

Update

@Rebus has it right:

mod_python is not being actively developed anymore, use mod_wsgi

There are a number of ways to deploy a Django site. See the Django Docs or the Django book . As mentioned mod_python is dead and mod_wsgi is the recommended method. Another method which has been making more noise lately is gunicorn . You can see Eric Holscher's blog post about how easy the deployment can be with it.

For CakePHP if you have a standard PHP installation, you probably, at most, only need to load mod_rewrite. This module is often included in the build, though.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM