UWSGI container
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

13 lines
254 B

#!/bin/sh
su python <<'EOF'
chown -R python:python /home/python
if [ -d /home/python/appenv ] ; then
exit 0
fi
cd /home/python/
virtualenv --python=python3.4 appenv
source appenv/bin/activate
pip install -r app/requirements.txt
deactivate
EOF