15 lines
535 B
Plaintext
15 lines
535 B
Plaintext
cd /Drama
|
|
cp ./env /env
|
|
. /env
|
|
sudo apt update
|
|
sudo apt -y upgrade
|
|
sudo apt -y install postgresql postgresql-contrib redis-server python3-pip libenchant1c2a ffmpeg
|
|
cp pg_hba.conf /etc/postgresql/12/main/pg_hba.conf
|
|
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
|
|
. imei.sh
|
|
sudo -E gunicorn files.__main__:app -k gevent -w 1 --reload -b 0.0.0.0:80:80 --max-requests 1000 --max-requests-jitter 500 |