mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-24 19:48:36 +02:00
Merge remote-tracking branch 'origin/main' into rh/1727-metadata-emaill
This commit is contained in:
commit
14f5ca8a29
5 changed files with 57 additions and 10 deletions
|
@ -68,6 +68,7 @@ services:
|
|||
command: >
|
||||
bash -c " python manage.py migrate &&
|
||||
python manage.py load &&
|
||||
python manage.py createcachetable &&
|
||||
python manage.py runserver 0.0.0.0:8080"
|
||||
|
||||
db:
|
||||
|
|
|
@ -192,15 +192,12 @@ WSGI_APPLICATION = "registrar.config.wsgi.application"
|
|||
# https://docs.djangoproject.com/en/4.0/howto/static-files/
|
||||
|
||||
|
||||
# Caching is disabled by default.
|
||||
# For a low to medium traffic site, caching causes more
|
||||
# problems than it solves. Should caching be desired,
|
||||
# a reasonable start might be:
|
||||
# CACHES = {
|
||||
# "default": {
|
||||
# "BACKEND": "django.core.cache.backends.db.DatabaseCache",
|
||||
# }
|
||||
# }
|
||||
CACHES = {
|
||||
"default": {
|
||||
"BACKEND": "django.core.cache.backends.db.DatabaseCache",
|
||||
"LOCATION": "cache_table",
|
||||
}
|
||||
}
|
||||
|
||||
# Absolute path to the directory where `collectstatic`
|
||||
# will place static files for deployment.
|
||||
|
|
|
@ -6,4 +6,4 @@ set -o pipefail
|
|||
# Make sure that django's `collectstatic` has been run locally before pushing up to any environment,
|
||||
# so that the styles and static assets to show up correctly on any environment.
|
||||
|
||||
gunicorn --worker-class=gevent registrar.config.wsgi -t 60
|
||||
gunicorn --workers=3 --worker-class=gevent registrar.config.wsgi -t 60
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue