install.sh 438 Bytes
Newer Older
1 2 3 4 5
#!/usr/bin/env bash
TARGET=/var/www/django/frms
mkdir -p /var/www/django/frms/logs
git clone https://gitlab.hrz.tu-chemnitz.de/saxid-federated-resource-management/frms.git $TARGET/app
cd $TARGET/app
Daniel Schreiber's avatar
Daniel Schreiber committed
6
#git checkout django22_vektorfix
7 8 9 10
python3 -mvenv $TARGET/env
source $TARGET/env/bin/activate
cd $TARGET/app
pip install -r requirements.txt
Daniel Schreiber's avatar
Daniel Schreiber committed
11
pip install ipython
Daniel Schreiber's avatar
Daniel Schreiber committed
12
pip install mysqlclient
13 14 15

mkdir -p $TARGET/static
chown www-data: $TARGET/static