fd
This commit is contained in:
parent
72b3d63021
commit
621b567244
1 changed files with 11 additions and 11 deletions
22
setup
22
setup
|
@ -1,17 +1,17 @@
|
|||
cd /drama
|
||||
sudo cd /drama
|
||||
sudo apt update
|
||||
sudo apt upgrade
|
||||
sudo apt install postgresql postgresql-contrib
|
||||
sudo apt install redis-server
|
||||
rm /etc/redis/redis.conf
|
||||
cp redis.conf /etc/redis/redis.conf
|
||||
sudo rm /etc/redis/redis.conf
|
||||
sudo cp redis.conf /etc/redis/redis.conf
|
||||
sudo systemctl restart redis.service
|
||||
rm /etc/postgresql/12/main/pg_hba.conf
|
||||
cp pg_hba.conf /etc/postgresql/12/main/pg_hba.conf
|
||||
psql --u postgres -f schema.sql postgres
|
||||
psql --u postgres -f seed-db.sql postgres
|
||||
apt install python3-pip
|
||||
sudo rm /etc/postgresql/12/main/pg_hba.conf
|
||||
sudo cp pg_hba.conf /etc/postgresql/12/main/pg_hba.conf
|
||||
sudo psql --u postgres -f schema.sql postgres
|
||||
sudo psql --u postgres -f seed-db.sql postgres
|
||||
sudo apt install python3-pip
|
||||
sudo pip3 install -r requirements.txt
|
||||
cp env /env
|
||||
apt install gunicorn
|
||||
gunicorn files.__main__:app -k gevent -w 2 --reload -b 0.0.0.0:80 --reload-extra-file ./files/templates/
|
||||
sudo cp env /env
|
||||
sudo apt install gunicorn
|
||||
sudo gunicorn files.__main__:app -k gevent -w 2 --reload -b 0.0.0.0:80 --reload-extra-file ./files/templates/
|
Loading…
Add table
Add a link
Reference in a new issue