no i tried to add you example and route and "/test". then I added in the _send(self) send method at very first a print
What i does is, that it prints the first print before the while and afterwards is does nothing. I called it like your example uwsgi --http-socket :9090 -w app --enable-threads --virtualenv /opt/virtualenv/app/ --chdir /opt/www/app/ no idea why it is not working. but thanks for your help On Mon, Jan 27, 2014 at 10:36 AM, Pasithee Jupiter <[email protected]>wrote: > for uwsgi it should be one bottle application > > > On Mon, Jan 27, 2014 at 10:35 AM, Pasithee Jupiter <[email protected]>wrote: > >> sorry ... no no with mount i mean the bottle mount method >> >> app.mount(app = other_app, prefix = 'abc', skip=None) >> >> >> >> >> On Mon, Jan 27, 2014 at 10:27 AM, Roberto De Ioris <[email protected]>wrote: >> >>> >>> > Could it be how do I create the application? >>> > >>> > >>> > bottle.default_app.push(web.app) >>> > >>> > session_opts = { >>> > >>> > 'session.cookie_expires': configuration["session"]["expires"], >>> > >>> > 'session.encrypt_key': configuration["session"]["encrypt-key"], >>> > >>> > 'session.httponly': True, >>> > >>> > 'session.timeout': configuration["session"]["timeout"], >>> > >>> > 'session.type': 'cookie', >>> > >>> > 'session.validate_key': True, >>> > >>> > } >>> > >>> > >>> > application = SessionMiddleware(\ >>> > >>> > I18NMiddleware(\ >>> > >>> > web.app,\ >>> > >>> > >>> I18NPlugin(domain='messages',\ >>> > >>> > default="en",\ >>> > >>> > >>> > >>> locale_dir=os.path.normpath(os.path.join(os.path.dirname(os.path.abspath(__file__)), >>> > './locale')))\ >>> > >>> > ),\ >>> > >>> > session_opts) >>> > >>> > >>> > >>> > where the is >>> > >>> > web.app = bottle.Bottle() >>> > >>> > >>> > and I mount a lot of other bottle applications. >>> > >>> > >>> >>> for "mount" you mean the uWSGI --mount option so each bottle app is >>> isolated ? If so, well multiple interpreters and threads are generally a >>> pain. >>> >>> >>> -- >>> Roberto De Ioris >>> http://unbit.it >>> _______________________________________________ >>> uWSGI mailing list >>> [email protected] >>> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi >>> >> >> >
_______________________________________________ uWSGI mailing list [email protected] http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
