source: OpenWorkouts-current/etc/development.wsgi

Last change on this file was 8ee2af5, checked in by Borja Lopez <borja@…>, 4 years ago

Added the scripts and config files to run uwsgi instead of pserve
for development.

This fixes a problem that caused pserve to hang up forever when
several ajax requests were sent to generate screenshots of workout
maps (pserve does not handle concurrent requests very well).

After pulled this change, you can start the app manually using the
uwsgi_start helper::

./bin/uwsgi_start development

Or just use the ./bin/start script, which takes care also of starting
ZEO and several other steps.

  • Property mode set to 100644
File size: 413 bytes
1import os
2from pyramid.paster import get_app, setup_logging
4current_path = os.path.dirname(os.path.abspath(__file__))
6os.environ['CHAMELEON_CACHE'] = os.path.join(current_path, '../var/tmp/chameleon/')
7os.environ['PYTHON_EGG_CACHE'] = os.path.join(current_path, '../var/tmp/egg_cache')
9ini_path = os.path.join(current_path, '../development.ini')
11application = get_app(ini_path, 'main')
Note: See TracBrowser for help on using the repository browser.