Fixes: tryout without command code aligning
This commit is contained in:
parent
fb61383b2d
commit
3c21f9f386
3 changed files with 6 additions and 15 deletions
|
|
@ -14,18 +14,9 @@ services:
|
||||||
command: >
|
command: >
|
||||||
sh -c "poetry run python manage.py await_services &&
|
sh -c "poetry run python manage.py await_services &&
|
||||||
if [ \"$DEBUG\" = \"1\" ]; then
|
if [ \"$DEBUG\" = \"1\" ]; then
|
||||||
poetry run gunicorn evibes.wsgi:application \
|
poetry run gunicorn evibes.wsgi:application --bind 0.0.0.0:8000 --workers 2 --reload --log-level debug --access-logfile - --error-logfile -;
|
||||||
--bind 0.0.0.0:8000 \
|
|
||||||
--workers 2 \
|
|
||||||
--reload \
|
|
||||||
--log-level debug \
|
|
||||||
--access-logfile - \
|
|
||||||
--error-logfile -;
|
|
||||||
else
|
else
|
||||||
poetry run gunicorn evibes.wsgi:application \
|
poetry run gunicorn evibes.wsgi:application --bind 0.0.0.0:8000 --workers 12 --timeout 120;
|
||||||
--bind 0.0.0.0:8000 \
|
|
||||||
--workers 12 \
|
|
||||||
--timeout 120;
|
|
||||||
fi"
|
fi"
|
||||||
volumes:
|
volumes:
|
||||||
- .:/app
|
- .:/app
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,8 @@ from evibes.settings.base import REDIS_PASSWORD, getenv
|
||||||
|
|
||||||
CACHES = {
|
CACHES = {
|
||||||
"default": {
|
"default": {
|
||||||
"BACKEND": "django_redis.cache.RedisCache",
|
# "BACKEND": "django_redis.cache.RedisCache",
|
||||||
# "BACKEND": "django_prometheus.cache.backends.redis.RedisCache",
|
"BACKEND": "django_prometheus.cache.backends.redis.RedisCache",
|
||||||
"LOCATION": getenv("CELERY_BROKER_URL", f"redis://:{REDIS_PASSWORD}@redis:6379/0"),
|
"LOCATION": getenv("CELERY_BROKER_URL", f"redis://:{REDIS_PASSWORD}@redis:6379/0"),
|
||||||
"OPTIONS": {
|
"OPTIONS": {
|
||||||
"CLIENT_CLASS": "django_redis.client.DefaultClient",
|
"CLIENT_CLASS": "django_redis.client.DefaultClient",
|
||||||
|
|
|
||||||
|
|
@ -2,8 +2,8 @@ from evibes.settings.base import * # noqa: F403
|
||||||
|
|
||||||
DATABASES = {
|
DATABASES = {
|
||||||
"default": {
|
"default": {
|
||||||
# "ENGINE": "django_prometheus.db.backends.postgis",
|
"ENGINE": "django_prometheus.db.backends.postgis",
|
||||||
"ENGINE": "django.contrib.gis.db.backends.postgis",
|
# "ENGINE": "django.contrib.gis.db.backends.postgis",
|
||||||
"NAME": getenv("POSTGRES_DB"), # noqa: F405
|
"NAME": getenv("POSTGRES_DB"), # noqa: F405
|
||||||
"USER": getenv("POSTGRES_USER"), # noqa: F405
|
"USER": getenv("POSTGRES_USER"), # noqa: F405
|
||||||
"PASSWORD": getenv("POSTGRES_PASSWORD"), # noqa: F405
|
"PASSWORD": getenv("POSTGRES_PASSWORD"), # noqa: F405
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue