potential solution to the chat docker problem

remotes/1693176582716663532/tmp_refs/heads/watchparty
Aevann1 2022-10-13 20:21:02 +02:00
parent 184afe63ab
commit 3888b29983
3 changed files with 15 additions and 7 deletions

View File

@ -20,7 +20,11 @@
{{v.css | safe}}
</style>
{% endif %}
<link rel="stylesheet" href="{{'css/chat_done.css' | asset}}">
{% if SITE == 'localhost' %}
<link rel="stylesheet" href="https://rdrama.net/assets/css/chat_done.css">
{% else %}
<link rel="stylesheet" href="{{'css/chat_done.css' | asset}}">
{% endif %}
</head>
<body>
@ -41,8 +45,11 @@
data-hat="{{v.hat_active}}">
</div>
<script>window.global = window</script>
<script defer src="{{'js/chat_done.js' | asset}}"></script>
{% if SITE == 'localhost' %}
<script defer src="https://rdrama.net/assets/js/chat_done.js"></script>
{% else %}
<script defer src="{{'js/chat_done.js' | asset}}"></script>
{% endif %}
<script defer src="{{'js/lozad.js' | asset}}"></script>
<script defer src="{{'js/lite-youtube.js' | asset}}"></script>
</body>

View File

@ -3,9 +3,5 @@ export DATABASE_URL="postgresql://postgres@postgres:5432"
export REDIS_URL="redis://redis:6379"
export PROXY_URL="http://opera-proxy:18080"
/etc/init.d/nginx start
cd ./chat
yarn install
yarn chat
cd ..
gunicorn files.__main__:app load_chat -k geventwebsocket.gunicorn.workers.GeventWebSocketWorker -w 1 -b 0.0.0.0:5001 --max-requests 30000 --max-requests-jitter 30000 -D
gunicorn files.__main__:app -k gevent -w 1 --reload -b 0.0.0.0:5000 --max-requests 30000 --max-requests-jitter 10000

View File

@ -81,3 +81,8 @@ echo "tmux -S /tmp/s a -t 0" > /c
echo "tmux -S /tmp/s a -t 1" > /c2
echo "cd /rDrama && git pull" > /g
echo '{"Bots": true, "Fart mode": false, "Read-only mode": false, "Signups": true, "login_required": false}' > /site_settings.json
cd ./chat
yarn install
yarn chat
cd ..