forked from rDrama/rDrama
1
0
Fork 0
master
Aevann1 2021-09-06 01:09:38 +02:00
commit 32425ba96a
2 changed files with 13 additions and 12 deletions

View File

@ -24,7 +24,7 @@ docker-compose up
4- That's it! Visit `localhost` in your browser.
5- Optional: to change the domain from "localhost" to something else, configure the site settings and integrate it with the external services we use, please edit the variables in the docker-compose.yml file.
5- Optional: to change the domain from "localhost" to something else, configure the site settings and integrate it with the external services we use, please edit the variables in the docker-compose.yml file and then restart the docker container.
---
@ -54,5 +54,7 @@ source setup
5- Optional: to change the domain from "localhost" to something else, configure the site settings and integrate it with the external services we use, please run this command and edit the variables:
```
nano /drama/docker-compose.yml
nano /drama/env.sh
```
then run `source restart` to apply the changes.

19
setup
View File

@ -1,11 +1,10 @@
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
. env
gunicorn files.__main__:app -k gevent -w 2 --reload -b 0.0.0.0:80 --reload-extra-file ./files/templates/