MarseyWorld/setup

17 lines
606 B
Plaintext

sudo cd /drama
sudo apt update
sudo apt upgrade
sudo apt install postgresql postgresql-contrib
sudo apt install redis-server
sudo rm /etc/redis/redis.conf
sudo cp redis.conf /etc/redis/redis.conf
sudo systemctl restart redis.service
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
sudo cp env /env
sudo apt install gunicorn
sudo gunicorn files.__main__:app -k gevent -w 2 --reload -b 0.0.0.0:80