Skip to content

Commit

Permalink
Настройка локализации (#235)
Browse files Browse the repository at this point in the history
  • Loading branch information
kudralexandr authored Aug 27, 2024
2 parents 36bb26c + e4294b0 commit 265196c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull_and_run_on_server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:
docker compose -f docker-compose.stage.yaml exec backend sh -c "export RUN_BOT=false"
docker compose -f docker-compose.stage.yaml exec backend python manage.py collectstatic
docker compose -f docker-compose.stage.yaml exec backend python manage.py migrate
docker compose -f docker-compose.stage.yaml exec backend export LC_TIME=ru_RU.UTF-8
docker compose -f docker-compose.stage.yaml exec backend export LC_TIME="ru_RU.UTF-8"
docker compose -f docker-compose.stage.yaml exec backend locale-gen ru_RU.UTF-8
docker compose -f docker-compose.stage.yaml exec backend dpkg-reconfigure locales
docker compose -f docker-compose.stage.yaml exec backend sh -c "export RUN_BOT=true"
9 changes: 0 additions & 9 deletions infra/stage/stage.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,4 @@ COPY src/. /app/
RUN poetry config virtualenvs.create false \
&& poetry install --without dev --no-root


RUN apt-get update && \
apt-get install -y locales && \
sed -i -e 's/# ru_RU.UTF-8 UTF-8/ru_RU.UTF-8 UTF-8/' /etc/locale.gen && \
dpkg-reconfigure locales

ENV LANG ru_RU.UTF-8
ENV LC_ALL ru_RU.UTF-8

CMD ["poetry", "run", "uvicorn", "core.asgi_prod:application", "--lifespan", "on", "--host", "0.0.0.0", "--port", "8000"]

0 comments on commit 265196c

Please sign in to comment.