2021-10-15 14:08:27 +00:00
|
|
|
cd /drama
|
|
|
|
sudo apt update
|
|
|
|
sudo apt -y upgrade
|
|
|
|
sudo apt -y install postgresql postgresql-contrib
|
|
|
|
sudo apt -y install redis-server
|
2021-11-13 23:14:56 +00:00
|
|
|
cp pg_hba.conf /etc/postgresql/13/main/pg_hba.conf
|
|
|
|
sudo service postgresql restart
|
2021-10-15 14:08:27 +00:00
|
|
|
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
|
|
|
|
sudo apt -y install ffmpeg
|
2021-12-13 19:35:55 +00:00
|
|
|
mkdir /songs
|
|
|
|
mkdir /images
|
2021-10-15 14:08:27 +00:00
|
|
|
cp ./env /env
|
|
|
|
. /env
|
2022-01-06 22:18:38 +00:00
|
|
|
sudo -E gunicorn files.__main__:app -k gevent -w 2 --reload -b localhost:80 --max-requests 1000 --max-requests-jitter 500
|