dokku shit

This commit is contained in:
Trey t
2023-06-26 10:24:35 -05:00
parent 6e302bf860
commit 4ab091d610
12 changed files with 296 additions and 8 deletions

0
misc/CHECKS Normal file
View File

3
misc/DOKKU_SCALE Normal file
View File

@@ -0,0 +1,3 @@
web=1
worker=3
beat=1

3
misc/Procfile Normal file
View File

@@ -0,0 +1,3 @@
web: daphne werkout_api.asgi:application --port 5000 --bind 0.0.0.0 -v2
beat: /usr/local/bin/celery -A werkout beat -linfo
worker: python3 manage.py runworker channel_layer -v2

7
misc/app.json Normal file
View File

@@ -0,0 +1,7 @@
{
"scripts": {
"dokku": {
"predeploy": "/code/manage.py migrate --noinput"
}
}
}

10
misc/uwsgi.ini Normal file
View File

@@ -0,0 +1,10 @@
[uwsgi]
module=werkout.wsgi:application
master=True
vacuum=True
max-requests=5000
http-socket=:5000
processes=3
harakiri=120
single-interpreter=True
enable-threads=True