this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix compile message

+19 -4
+16 -1
nix/docker-image.nix
··· 85 85 # Dockerfile COPY steps would, with correct permissions. 86 86 # ------------------------------------------------------------------------- 87 87 appDir = pkgs.runCommand "care-app" { 88 - nativeBuildInputs = [ pkgs.rsync ]; 88 + nativeBuildInputs = [ pkgs.rsync pkgs.gettext ]; 89 89 } '' 90 90 mkdir -p $out/app 91 91 ··· 130 130 # copied to /app in the Dockerfile) 131 131 for f in $out/app/*.sh; do 132 132 [ -f "$f" ] && chmod +x "$f" 133 + done 134 + 135 + # Pre-compile .po → .mo message files at build time. 136 + # At runtime the Nix store is read-only so `manage.py compilemessages` 137 + # would fail. We use msgfmt directly to avoid needing a full Django 138 + # environment during the image build. 139 + find $out/app -name '*.po' -print0 | while IFS= read -r -d '' po; do 140 + mo="''${po%.po}.mo" 141 + msgfmt -o "$mo" "$po" 2>/dev/null || true 142 + done 143 + 144 + # Also compile .po files inside vendored/venv packages (e.g. django-filters) 145 + find $out/app/.venv -name '*.po' -print0 | while IFS= read -r -d '' po; do 146 + mo="''${po%.po}.mo" 147 + msgfmt -o "$mo" "$po" 2>/dev/null || true 133 148 done 134 149 ''; 135 150
+1 -1
scripts/celery_beat.sh
··· 16 16 ./wait_for_redis.sh 17 17 18 18 python3 manage.py migrate --noinput 19 - python3 manage.py compilemessages -v 0 19 + python3 manage.py compilemessages -v 0 || true 20 20 python3 manage.py sync_permissions_roles 21 21 python3 manage.py sync_valueset 22 22
+1 -1
scripts/celery_worker.sh
··· 16 16 ./wait_for_redis.sh 17 17 18 18 python3 manage.py collectstatic --noinput 19 - python3 manage.py compilemessages -v 0 19 + python3 manage.py compilemessages -v 0 || true 20 20 21 21 celery --app=config.celery_app worker --max-tasks-per-child=6 --loglevel=info --concurrency=${CELERY_WORKER_CONCURRENCY:-1}
+1 -1
scripts/start.sh
··· 21 21 ./wait_for_redis.sh 22 22 23 23 python3 manage.py collectstatic --noinput 24 - python3 manage.py compilemessages -v 0 24 + python3 manage.py compilemessages -v 0 || true 25 25 26 26 27 27 gunicorn --config python:config.gunicorn config.wsgi:application --bind 0.0.0.0:9000 --chdir=/app --workers 2 \