master
Aevann1 2021-09-14 05:45:09 +02:00
parent ea8587d8ad
commit 8ef82d1f49
1 changed files with 16 additions and 2 deletions

18
setup
View File

@ -1,2 +1,16 @@
source /drama/env
env
cd /drama
sudo apt update
sudo apt -y upgrade
sudo apt -y install postgresql postgresql-contrib
sudo apt -y install redis-server
cp redis.conf /etc/redis/redis.conf
sudo systemctl restart redis.service
cp pg_hba.conf /etc/postgresql/12/main/pg_hba.conf
sudo service postgresql restart
sudo psql -U postgres -f schema.sql postgres
sudo psql -U postgres -f seed-db.sql postgres
sudo apt -y install python3-pip
sudo pip3 install -r requirements.txt
sudo apt -y install gunicorn
source ./env
env