Skip to content

Commit

Permalink
Merge pull request #21 from unicef/bugfix/app_settings
Browse files Browse the repository at this point in the history
chg ! config settings path
  • Loading branch information
domdinicola authored Sep 26, 2024
2 parents dfdee30 + 3d01368 commit d2fc8ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docker/bin/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
export MEDIA_ROOT="${MEDIA_ROOT:-/var/run/app/media}"
export STATIC_ROOT="${STATIC_ROOT:-/var/run/app/static}"
export UWSGI_PROCESSES="${UWSGI_PROCESSES:-"4"}"
export DJANGO_SETTINGS_MODULE="${DJANGO_SETTINGS_MODULE:-"hope_dedup_engine.config.settings"}"
export DJANGO_SETTINGS_MODULE="${DJANGO_SETTINGS_MODULE:-"hope_country_workspace.config.settings"}"
mkdir -p "${MEDIA_ROOT}" "${STATIC_ROOT}" || echo "Cannot create dirs ${MEDIA_ROOT} ${STATIC_ROOT}"

case "$1" in
Expand Down Expand Up @@ -41,10 +41,10 @@ exec "$@"
# exec uwsgi --ini /conf/uwsgi.ini
# ;;
# worker)
# exec celery -A hope_dedup_engine.celery worker -E --loglevel=ERROR --concurrency=4
# exec celery -A hope_country_workspace.celery worker -E --loglevel=ERROR --concurrency=4
# ;;
# beat)
# exec celery -A hope_dedup_engine.celery beat -E --loglevel=ERROR ---scheduler django_celery_beat.schedulers:DatabaseScheduler
# exec celery -A hope_country_workspace.celery beat -E --loglevel=ERROR ---scheduler django_celery_beat.schedulers:DatabaseScheduler
# ;;
# dev)
# until pg_isready -h db -p 5432;
Expand Down
2 changes: 1 addition & 1 deletion docker/conf/uwsgi.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ http=0.0.0.0:8000
enable-threads=0
honour-range=1
master=1
module=hope_dedup_engine.config.wsgi
module=hope_country_workspace.config.wsgi
processes=$(UWSGI_PROCESSES)
;virtualenv=/code/.venv/
;virtualenv=%(_)
Expand Down

0 comments on commit d2fc8ba

Please sign in to comment.