MarseyWorld/setup

20 lines
687 B
Plaintext
Raw Normal View History

2021-09-14 03:45:09 +00:00
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
2021-09-15 04:02:31 +00:00
sudo psql -U postgres -f schema.sql postgres
sudo psql -U postgres -f seed-db.sql postgres
2021-09-14 03:45:09 +00:00
sudo apt -y install python3-pip
sudo pip3 install -r requirements.txt
sudo apt -y install gunicorn
2021-09-15 04:05:30 +00:00
sudo apt -y install ffmpeg
mkdir /songs
2021-09-14 03:51:09 +00:00
cp ./env /env
. /env
gunicorn files.__main__:app -k gevent -w 1 --reload -b 0.0.0.0:80 --reload-extra-file ./files/templates/ --max-requests 1000 --max-requests-jitter 500