Browse Source

remove bash_profile.sh from wsgi

Lita Gratrix 10 years ago
parent
commit
484b3f8b2c

+ 0 - 16
frameworks/Python/wsgi/bash_profile.sh

@@ -1,16 +0,0 @@
-export PY2_ROOT=$IROOT/py2
-export PY2=$PY2_ROOT/bin/python
-export PY2_PIP=$PY2_ROOT/bin/pip
-export PY2_GUNICORN=$PY2_ROOT/bin/gunicorn
-
-export PYPY_ROOT=$IROOT/pypy
-export PYPY=$PYPY_ROOT/bin/python
-export PYPY_PIP=$PYPY_ROOT/bin/pip
-export PYPY_GUNICORN=$PYPY_ROOT/bin/gunicorn
-
-export PY3_ROOT=$IROOT/py3
-export PY3=$PY3_ROOT/bin/python
-export PY3_PIP=$PY3_ROOT/bin/pip3
-export PY3_GUNICORN=$PY3_ROOT/bin/gunicorn
-
-export NGINX_HOME=${IROOT}/nginx

+ 7 - 0
frameworks/Python/wsgi/install.sh

@@ -1,5 +1,12 @@
 #!/bin/bash
 #!/bin/bash
 
 
+export PY2_ROOT=$IROOT/py2
+export PY2=$PY2_ROOT/bin/python
+export PY2_PIP=$PY2_ROOT/bin/pip
+export PY2_GUNICORN=$PY2_ROOT/bin/gunicorn
+
+export NGINX_HOME=${IROOT}/nginx
+
 mkdir -p $IROOT/.pip_cache
 mkdir -p $IROOT/.pip_cache
 export PIP_DOWNLOAD_CACHE=$IROOT/.pip_cache
 export PIP_DOWNLOAD_CACHE=$IROOT/.pip_cache
 
 

+ 4 - 0
frameworks/Python/wsgi/setup.sh

@@ -1,3 +1,7 @@
 #!/bin/bash
 #!/bin/bash
+export PY2_ROOT=$IROOT/py2
+export PY2=$PY2_ROOT/bin/python
+export PY2_PIP=$PY2_ROOT/bin/pip
+export PY2_GUNICORN=$PY2_ROOT/bin/gunicorn
 
 
 $PY2_GUNICORN hello:app -c gunicorn_conf.py &
 $PY2_GUNICORN hello:app -c gunicorn_conf.py &

+ 5 - 0
frameworks/Python/wsgi/setup_nginxuwsgi.sh

@@ -1,4 +1,9 @@
 #!/bin/bash
 #!/bin/bash
+export PY2_ROOT=$IROOT/py2
+export PY2=$PY2_ROOT/bin/python
+export PY2_PIP=$PY2_ROOT/bin/pip
+export PY2_GUNICORN=$PY2_ROOT/bin/gunicorn
+export NGINX_HOME=${IROOT}/nginx
 
 
 sed -i 's|include .*/conf/uwsgi_params;|include '"${NGINX_HOME}"'/conf/uwsgi_params;|g' nginx.conf
 sed -i 's|include .*/conf/uwsgi_params;|include '"${NGINX_HOME}"'/conf/uwsgi_params;|g' nginx.conf