current
Last change
on this file since 0dedfbe 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
100755
|
File size:
769 bytes
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | # |
---|
3 | # Start uwsgi, loading the config from the ini file in etc/ |
---|
4 | |
---|
5 | |
---|
6 | case "$1" in |
---|
7 | 'development') |
---|
8 | uwsgi --ini etc/uwsgi_development.ini |
---|
9 | echo "Started uwsgi, check var/log/uwsgi/uwsgi.log for more info" |
---|
10 | ;; |
---|
11 | 'staging') |
---|
12 | uwsgi --ini etc/uwsgi_staging.ini |
---|
13 | echo "Started uwsgi, check var/log/uwsgi/uwsgi.log for more info" |
---|
14 | ;; |
---|
15 | 'production') |
---|
16 | uwsgi --ini etc/uwsgi_production.ini |
---|
17 | echo "Started uwsgi, check var/log/uwsgi/uwsgi.log for more info" |
---|
18 | ;; |
---|
19 | *) |
---|
20 | if [ $1 ]; then |
---|
21 | echo "[error] $1 is not a valid environment" |
---|
22 | else |
---|
23 | echo "[error] No env name provided" |
---|
24 | fi |
---|
25 | echo "Valid env names: staging production" |
---|
26 | exit 1 |
---|
27 | ;; |
---|
28 | esac |
---|
Note: See
TracBrowser
for help on using the repository browser.