forked from rDrama/rDrama
This code runs https://rdrama.net and https://watchpeopledie.tv
Snakes
9f7adb2614
Certain animated images take an exceedingly long time (~minutes) to encode to WEBP using method=6. Such a file was obtained, and it encoded significantly faster using method=5 and somehow turned out smaller than the result generated with method=6. We switch now to use method=5 so we stop getting occasional massive increases in CPU load when multiple users upload animations at the same time. Additionally, a timeout was added to the ImageMagick subprocess just in case there are even more pathological files in the future. Better to error out than have to get someone to kill the process. |
||
---|---|---|
.github/workflows | ||
chat | ||
files | ||
.gitattributes | ||
.gitignore | ||
CODE_OF_CONDUCT.md | ||
Dockerfile | ||
LICENSE | ||
dependabot.yml | ||
docker-compose.yml | ||
env | ||
gunicorn.conf.py | ||
nginx-serve-static.conf | ||
nginx.conf | ||
pg_hba.conf | ||
readme.md | ||
requirements.txt | ||
run_tests.py | ||
schema.sql | ||
seed-db.sql | ||
snappy_PCM.txt | ||
snappy_rDrama.txt | ||
startup.sh | ||
startup_chat.sh | ||
startup_docker.sh | ||
supervisord.conf | ||
ubuntu_setup.sh |
readme.md
This code runs https://rdrama.net, https://pcmemes.net and https://watchpeopledie.tv
Installation (Windows/Linux/MacOS)
1- Install Docker on your machine.
2- Run the following commands in the terminal:
git clone https://github.com/Aevann1/rDrama/
cd rDrama
docker-compose up
3- That's it! Visit localhost
in your browser and make an account (the first account to be made will have full admin rights)
4- Optional: to change the domain from "localhost" to something else and configure the site settings, as well as integrate it with the external services the website uses, edit the variables in the env
file and then restart the docker container.
For returning contributors, we have noticed the following issues (if you can help fix them, we will be very grateful!):
- Docker doesn't know when we add a new Python dependency,
docker-compose build
is needed. - DB schema changes are not applied automatically, the easiest way to deal with that is to delete the entire environment from the Docker GUI and do
docker-compose up
. Also wait five minutes for a "sneed" commit from Aevann meaning that the sql file was regenerated.