forked from rDrama/rDrama
1
0
Fork 0

Update setup

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