docker/api-async/run_web_api.sh

11 lines
677 B
Bash
Raw Normal View History

2019-04-23 13:35:31 -04:00
#!/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
2019-08-06 09:27:32 -04:00
#gunicorn -c ./wsgi_profiler_conf.py -w 1 --threads 8 --bind 0.0.0.0:$VIZIERSERVER_SERVER_LOCAL_PORT wsgi:app
gunicorn -w 1 --threads 8 --bind 0.0.0.0:$VIZIERSERVER_SERVER_LOCAL_PORT wsgi:app