alltubeStuffDKOMS Posted August 2, 2011 Posted August 2, 2011 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 August 2, 2011 Posted August 2, 2011 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.
alltubeStuffDKOMS Posted August 3, 2011 Author Posted August 3, 2011 Thanks for answering So, if it's possible to just upload zipped source and add it to pythonpath, it'd be great, but how should I add it to pythonpath without shell access?
Guest Geoff Posted August 3, 2011 Posted August 3, 2011 Umm... you don't need shell to add directories to your pythonpath, just do it in your script.
alltubeStuffDKOMS Posted August 11, 2011 Author Posted August 11, 2011 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!
Guest Geoff Posted August 11, 2011 Posted August 11, 2011 If you'll post your username and a URL to your script, I can tell you what is wrong.
alltubeStuffDKOMS Posted August 15, 2011 Author Posted August 15, 2011 username: mytube url: http://myalltube.heliohost.org/cgi-bin/ex.zip (it's simply quickstarted project) url to the path setting script: http://myalltube.heliohost.org/cgi-bin/add.pth Thanks!
Guest Geoff Posted August 15, 2011 Posted August 15, 2011 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now