d4-core/server/install_server.sh

28 lines
468 B
Bash
Raw Normal View History

2019-01-03 16:31:54 +01:00
#!/bin/bash
set -e
set -x
2019-01-18 16:08:19 +01:00
sudo apt-get install python3-pip virtualenv screen -y
2019-01-18 12:02:20 +01:00
if [ -z "$VIRTUAL_ENV" ]; then
virtualenv -p python3 D4ENV
echo export D4_HOME=$(pwd) >> ./D4ENV/bin/activate
. ./D4ENV/bin/activate
fi
python3 -m pip install -r requirement.txt
pushd web/
./update_web.sh
popd
2019-01-03 16:31:54 +01:00
python3 -m pip install -r requirement.txt
# REDIS #
test ! -d redis/ && git clone https://github.com/antirez/redis.git
pushd redis/
git checkout 5.0
make
popd