current
Last change
on this file since 8340661 was
8ee2af5,
checked in by Borja Lopez <borja@…>, 5 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
|
Line | |
---|
1 | import os |
---|
2 | from pyramid.paster import get_app, setup_logging |
---|
3 | |
---|
4 | current_path = os.path.dirname(os.path.abspath(__file__)) |
---|
5 | |
---|
6 | os.environ['CHAMELEON_CACHE'] = os.path.join(current_path, '../var/tmp/chameleon/') |
---|
7 | os.environ['PYTHON_EGG_CACHE'] = os.path.join(current_path, '../var/tmp/egg_cache') |
---|
8 | |
---|
9 | ini_path = os.path.join(current_path, '../development.ini') |
---|
10 | setup_logging(ini_path) |
---|
11 | application = get_app(ini_path, 'main') |
---|
Note: See
TracBrowser
for help on using the repository browser.