Jump to content

Recommended Posts

Posted

Hi!

I know, that it's possible to host django websites, but I wonder, whether it's possible to host turbogears 2 apps? If so, should I simply prepare an egg with the website ready to work via wsgi?

Sorry for lame question and thanks in advance! :)

Guest Geoff
Posted

I don't see why it wouldn't work. However, it will be easier to upload a zip of the source, and then add the location to your pythonpath.

  • 2 weeks later...
Posted

Hm.. I can add it to path with script (to simply zipped source of turbogears app, as you suggested), but still I get 500 error. But I'm not sure, whether I'm doing th right things because by now I have always deployed turbogears apps with apache mod_proxy and simply run turbogears server from shell.

 

Could you write more precisely, what should I do? It would be very useful for many people, I suppose, because in the web there is almost no info about real deploying tg. Thanks in advance!

Posted

If you'll post your username and a URL to your script, I can tell you what is wrong.

Posted

I got your application closer to working at http://myalltube.heliohost.org/example/apache/example.wsgi/, only to come up with this error:

[Mon Aug 15 10:05:16 2011] [error] [client 74.197.184.234] mod_wsgi (pid=32511): Exception occurred processing WSGI script '$
[Mon Aug 15 10:05:16 2011] [error] [client 74.197.184.234] Traceback (most recent call last):
[Mon Aug 15 10:05:16 2011] [error] [client 74.197.184.234]   File "/usr/local/lib/python2.7/site-packages/Paste-1.7.5.1-py2.$
[Mon Aug 15 10:05:16 2011] [error] [client 74.197.184.234]     return self.apps[-1](environ, start_response)
[Mon Aug 15 10:05:16 2011] [error] [client 74.197.184.234]   File "/usr/local/lib/python2.7/site-packages/Paste-1.7.5.1-py2.$
[Mon Aug 15 10:05:16 2011] [error] [client 74.197.184.234]     app_iter = self.application(environ, start_response)
[Mon Aug 15 10:05:16 2011] [error] [client 74.197.184.234]   File "/usr/local/lib/python2.7/site-packages/Pylons-1.0-py2.7.e$
[Mon Aug 15 10:05:16 2011] [error] [client 74.197.184.234]     self.app, environ, catch_exc_info=True)
[Mon Aug 15 10:05:16 2011] [error] [client 74.197.184.234]   File "/usr/local/lib/python2.7/site-packages/Pylons-1.0-py2.7.e$
[Mon Aug 15 10:05:16 2011] [error] [client 74.197.184.234]     app_iter = application(environ, start_response)
[Mon Aug 15 10:05:16 2011] [error] [client 74.197.184.234]   File "/usr/local/lib/python2.7/site-packages/WebError-0.10.3-py$
[Mon Aug 15 10:05:16 2011] [error] [client 74.197.184.234]     "The EvalException middleware is not usable in a "
[Mon Aug 15 10:05:16 2011] [error] [client 74.197.184.234] AssertionError: The EvalException middleware is not usable in a multi-process environment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...