11 lines
669 B
Bash
Executable file
11 lines
669 B
Bash
Executable file
#!/bin/bash
|
|
echo 'activating virtualenv...'
|
|
cd /usr/local/source/web-api/
|
|
source /opt/conda/bin/activate vizierasync
|
|
cd vizier
|
|
echo 'running wsgi server...'
|
|
#uwsgi --plugins-dir /usr/lib/uwsgi/ --need-plugin python --plugins-list --uid nginx --gid nginx --socket /tmp/uwsgi.sock --wsgi-file server.py --chown-socket nginx:nginx --callable app --processes 4 --threads 2 --stats 127.0.0.1:9191 --virtualenv /opt/conda/envs/vizier
|
|
#gunicorn -w 4 --bind unix:vizier.sock -m 777 server:app
|
|
#gunicorn -c ./wsgi_profiler_conf.py -w 1 --threads 8 --bind 0.0.0.0:$VIZIERSERVER_SERVER_LOCAL server:app
|
|
gunicorn -w 1 --threads 8 --bind 0.0.0.0:$VIZIERSERVER_SERVER_LOCAL wsgi:app
|