forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2021-09-06 01:50:10 +02:00
parent 76edf73407
commit 0dc026b708
1 changed files with 11 additions and 11 deletions

22
setup
View File

@ -1,17 +1,17 @@
cd /drama
sudo cd /drama
sudo apt update
sudo apt upgrade
sudo apt install postgresql postgresql-contrib
sudo apt install redis-server
rm /etc/redis/redis.conf
cp redis.conf /etc/redis/redis.conf
sudo rm /etc/redis/redis.conf
sudo cp redis.conf /etc/redis/redis.conf
sudo systemctl restart redis.service
rm /etc/postgresql/12/main/pg_hba.conf
cp pg_hba.conf /etc/postgresql/12/main/pg_hba.conf
psql --u postgres -f schema.sql postgres
psql --u postgres -f seed-db.sql postgres
apt install python3-pip
sudo rm /etc/postgresql/12/main/pg_hba.conf
sudo cp pg_hba.conf /etc/postgresql/12/main/pg_hba.conf
sudo psql --u postgres -f schema.sql postgres
sudo psql --u postgres -f seed-db.sql postgres
sudo apt install python3-pip
sudo pip3 install -r requirements.txt
cp env /env
apt install gunicorn
gunicorn files.__main__:app -k gevent -w 2 --reload -b 0.0.0.0:80 --reload-extra-file ./files/templates/
sudo cp env /env
sudo apt install gunicorn
sudo gunicorn files.__main__:app -k gevent -w 2 --reload -b 0.0.0.0:80 --reload-extra-file ./files/templates/