d4-core/server/install_server.sh

28 lines
495 B
Bash
Executable File

#!/bin/bash
set -e
set -x
sudo apt-get install python3-pip virtualenv screen whois unzip libffi-dev gcc -y
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
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