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: >
|
||||
sh -c "poetry run python manage.py await_services &&
|
||||
if [ \"$DEBUG\" = \"1\" ]; then
|
||||
poetry run gunicorn evibes.wsgi:application \
|
||||
--bind 0.0.0.0:8000 \
|
||||
--workers 2 \
|
||||
--reload \
|
||||
--log-level debug \
|
||||
--access-logfile - \
|
||||
--error-logfile -;
|
||||
poetry run gunicorn evibes.wsgi:application --bind 0.0.0.0:8000 --workers 2 --reload --log-level debug --access-logfile - --error-logfile -;
|
||||
else
|
||||
poetry run gunicorn evibes.wsgi:application \
|
||||
--bind 0.0.0.0:8000 \
|
||||
--workers 12 \
|
||||
--timeout 120;
|
||||
poetry run gunicorn evibes.wsgi:application --bind 0.0.0.0:8000 --workers 12 --timeout 120;
|
||||
fi"
|
||||
volumes:
|
||||
- .:/app
|
||||
|
|
|
|||
|
|
@ -4,8 +4,8 @@ from evibes.settings.base import REDIS_PASSWORD, getenv
|
|||
|
||||
CACHES = {
|
||||
"default": {
|
||||
"BACKEND": "django_redis.cache.RedisCache",
|
||||
# "BACKEND": "django_prometheus.cache.backends.redis.RedisCache",
|
||||
# "BACKEND": "django_redis.cache.RedisCache",
|
||||
"BACKEND": "django_prometheus.cache.backends.redis.RedisCache",
|
||||
"LOCATION": getenv("CELERY_BROKER_URL", f"redis://:{REDIS_PASSWORD}@redis:6379/0"),
|
||||
"OPTIONS": {
|
||||
"CLIENT_CLASS": "django_redis.client.DefaultClient",
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@ from evibes.settings.base import * # noqa: F403
|
|||
|
||||
DATABASES = {
|
||||
"default": {
|
||||
# "ENGINE": "django_prometheus.db.backends.postgis",
|
||||
"ENGINE": "django.contrib.gis.db.backends.postgis",
|
||||
"ENGINE": "django_prometheus.db.backends.postgis",
|
||||
# "ENGINE": "django.contrib.gis.db.backends.postgis",
|
||||
"NAME": getenv("POSTGRES_DB"), # noqa: F405
|
||||
"USER": getenv("POSTGRES_USER"), # noqa: F405
|
||||
"PASSWORD": getenv("POSTGRES_PASSWORD"), # noqa: F405
|
||||
|
|
|
|||
Loading…
Reference in a new issue