This code runs https://rdrama.net and https://watchpeopledie.tv
d0d15c319a
* poll rework * forgot to do joinedload on comments * Fix logic errors with voting, SQL syntax. Kitchen sink commit from review of poll-rework changes: 1. Fix seed-db.sql syntax error. 2. Fix SQL patch file duplication of *submissions* tables rather than one set of submissions and one for comments. 3. Start makeshift SQL patch folder, since this is a large change that contributors may wish to apply to their local instances. 4. Fix checkbox (non-`exclusive`) polls being unable to be unchecked. For consistency with `exclusive` polls, they should. 5. Fix changing the option of an `exclusive` poll when both exclusive and non-exclusive options are present in one comment/ post causing the non-exclusive options to become unchecked. (which, by my reading of SQLAlchemy `Query.one_or_none()` really could break quite badly in some cases). * link relationships with their counterparts * small modification to poll unchecking Co-authored-by: TLSM <duolsm@outlook.com> |
||
---|---|---|
.github | ||
files | ||
sql | ||
.gitattributes | ||
.gitignore | ||
CODE_OF_CONDUCT.md | ||
Dockerfile | ||
LICENSE | ||
dependabot.yml | ||
docker-compose.yml | ||
env | ||
imei.sh | ||
pg_hba.conf | ||
readme.md | ||
redis.conf | ||
requirements.txt | ||
run_tests.py | ||
schema.sql | ||
seed-db.sql | ||
site_settings.json | ||
snappy_PCM.txt | ||
snappy_rDrama.txt | ||
supervisord.conf | ||
ubuntu_setup.sh |
readme.md
This code runs https://rdrama.net, https://pcmemes.net, https://cringetopia.org, and https://watchpeopledie.co
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.
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, please 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. - Old authorization cookies from the previous instance cause a weird 404 error, clear cookies for localhost to fix.