2021-09-05 23:36:38 +00:00
|
|
|
cd /drama
|
2021-07-22 20:48:13 +00:00
|
|
|
sudo apt update
|
2021-09-05 23:02:15 +00:00
|
|
|
sudo apt upgrade
|
|
|
|
sudo apt install postgresql postgresql-contrib
|
|
|
|
sudo apt install redis-server
|
|
|
|
rm /etc/redis/redis.conf
|
2021-09-05 23:36:38 +00:00
|
|
|
cp redis.conf /etc/redis/redis.conf
|
2021-09-05 23:02:15 +00:00
|
|
|
sudo systemctl restart redis.service
|
2021-09-05 23:34:56 +00:00
|
|
|
rm /etc/postgresql/12/main/pg_hba.conf
|
2021-09-05 23:36:38 +00:00
|
|
|
cp pg_hba.conf /etc/postgresql/12/main/pg_hba.conf
|
2021-09-05 23:48:25 +00:00
|
|
|
psql --u postgres -f schema.sql postgres
|
|
|
|
psql --u postgres -f seed-db.sql postgres
|
2021-09-05 23:16:26 +00:00
|
|
|
apt install python3-pip
|
2021-09-05 23:02:15 +00:00
|
|
|
sudo pip3 install -r requirements.txt
|
2021-09-05 23:27:28 +00:00
|
|
|
cp env /env
|
2021-09-05 23:15:32 +00:00
|
|
|
apt install gunicorn
|
|
|
|
gunicorn files.__main__:app -k gevent -w 2 --reload -b 0.0.0.0:80 --reload-extra-file ./files/templates/
|