create python venv when needed
This commit is contained in:
@@ -3,7 +3,11 @@
|
||||
BASE=$(dirname $0)
|
||||
cd $BASE
|
||||
git pull
|
||||
python3 -m venv env
|
||||
if [ -d env ];
|
||||
then
|
||||
python3 -m venv env
|
||||
fi
|
||||
|
||||
source env/bin/activate
|
||||
pip3 install -U -r requirements.txt
|
||||
exec python3 app.py
|
||||
|
||||
Reference in New Issue
Block a user