remotes/1693045480750635534/spooky-22
Aevann1 2021-09-14 05:42:15 +02:00
parent ebde8a8f8e
commit 045c6f8fbc
1 changed files with 19 additions and 1 deletions

20
setup
View File

@ -1,2 +1,20 @@
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
cp ./env /env
source /env
env
sudo apt -y install gunicorn
sudo gunicorn files.__main__:app -k gevent -w 2 --reload -b 0.0.0.0:80 --reload-extra-file ./files/templates/ --max-requests 10000 --max-requests-jitter 500