docker/api/run_web_api.sh
Mike b3a936ec46 Kubernetes deployment
bug fixes for kubernetes deployment
2019-01-31 16:54:35 -05:00

11 lines
644 B
Bash
Executable file

#!/bin/bash
echo 'activating virtualenv...'
cd /usr/local/source/web-api/
source /opt/conda/bin/activate vizier
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:$API_LOCAL_PORT server:app
gunicorn -w 1 --threads 8 --bind 0.0.0.0:$API_LOCAL_PORT server:app