2022-02-05 10:17:08 +00:00
|
|
|
cd /Drama
|
2022-02-22 13:34:41 +00:00
|
|
|
cp ./env /env
|
|
|
|
. /env
|
2022-02-05 09:36:34 +00:00
|
|
|
sudo apt update
|
|
|
|
sudo apt -y upgrade
|
2022-02-22 13:34:41 +00:00
|
|
|
sudo apt -y install postgresql postgresql-contrib redis-server python3-pip libenchant1c2a ffmpeg
|
2022-02-05 10:17:08 +00:00
|
|
|
cp pg_hba.conf /etc/postgresql/12/main/pg_hba.conf
|
2022-02-05 09:36:34 +00:00
|
|
|
sudo service postgresql restart
|
|
|
|
sudo psql -U postgres -f schema.sql postgres
|
|
|
|
sudo psql -U postgres -f seed-db.sql postgres
|
|
|
|
sudo pip3 install -r requirements.txt
|
|
|
|
mkdir /songs
|
|
|
|
mkdir /images
|
2022-02-18 13:47:17 +00:00
|
|
|
. imei.sh
|
2022-02-05 10:17:08 +00:00
|
|
|
sudo -E gunicorn files.__main__:app -k gevent -w 2 --reload -b 0.0.0.0:80:80 --max-requests 1000 --max-requests-jitter 500
|