From c0cba8b5c44274e4476325cf7d1c159de8e4aea6 Mon Sep 17 00:00:00 2001 From: Aevann1 <59999695+Aevann1@users.noreply.github.com> Date: Mon, 6 Sep 2021 01:02:15 +0200 Subject: [PATCH] Update setup --- setup | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/setup b/setup index 028f8a4aa..dbb52dc17 100644 --- a/setup +++ b/setup @@ -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 \ No newline at end of file +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/