Files
kbcrm/App_Server/scripts/init.sh
T

16 lines
572 B
Bash

# Python virtual Environment anlegen
cd /usr/opt/pythonapp
# Wenn es die Datei pyvenv.cfg im Unterverzeichnis env nocht nicht gibt, muss das
# virtuelle Environment angelegt werden
# if [ ! -s env/pyvenv.cfg ]
# then
# echo "Creating Python Virtual environment..."
# python -m venv --upgrade-deps /usr/opt/pythonapp/env
# echo "Python Virtual environment created."
# fi
echo "Installing Python requirements..."
env/bin/pip install -r root/requirements.txt
echo "Python requirements installed."
echo "Starting Python-Server..."
env/bin/python root/runserver.py