forked from rDrama/rDrama
This code runs https://rdrama.net and https://watchpeopledie.tv
Snakes
af77ec515d
For too long, we've Replace-All'd to increment site asset version numbers. This is a task that has an obvious solution using the templating engine. As such, we now have templates/util/assetcache.html which contains a dict of version numbers and a macro to generate the versioned name of an asset. Going forward, it is recommended that all future replace-all uses are used as opportunities to switch to the macro. Do remember to import the macro in all top-level templates, if not already present. Recommended form: {%- from 'util/assetcache.html' import asset -%} Then add a key to CACHE_VER in util/assetcache.html. Then replace the asset path in templates eg: {{asset('css/main.css')}} For all future versions of those assets, one can simply increment the value in util/assetcache.html instead. This will greatly reduce git spam touching unrelated files and generally be clearer and easier. |
||
---|---|---|
.github | ||
files | ||
.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 |
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 - If hosting on localhost and/or without HTTPS, change"SESSION_COOKIE_SECURE"
in __main__.py
to "False"
3- Run the following commands in the terminal:
git clone https://github.com/Aevann1/rDrama/
cd rDrama
docker-compose up
4- That's it! Visit localhost
in your browser.
5- 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.