Update setup

remotes/1693045480750635534/spooky-22
Aevann1 2021-09-06 01:02:15 +02:00 committed by GitHub
parent 544eca28bf
commit c0cba8b5c4
1 changed files with 8 additions and 10 deletions

18
setup
View File

@ -1,11 +1,9 @@
sudo apt update
sudo apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable"
sudo apt update
apt-cache policy docker-ce
sudo apt install docker-ce
sudo curl -L https://github.com/docker/compose/releases/download/1.21.2/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo sysctl vm.overcommit_memory=1
docker-compose up
sudo apt upgrade
sudo apt install postgresql postgresql-contrib
sudo apt install redis-server
rm /etc/redis/redis.conf
cp /drama/redis.conf /etc/redis/redis.conf
sudo systemctl restart redis.service
sudo pip3 install -r requirements.txt
gunicorn files.__main__:app -k gevent -w 2 --reload -b 0.0.0.0:80 --reload-extra-file ./files/templates/