Skip to content

Commit

Permalink
Merge pull request #188 from IMBlues/development
Browse files Browse the repository at this point in the history
fix: 补上国际化步骤
  • Loading branch information
IMBlues authored Dec 6, 2021
2 parents f49ffb9 + 1098908 commit beb55e1
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RUN rm /etc/apt/sources.list && \

RUN mkdir ~/.pip && printf '[global]\nindex-url = https://mirrors.tencent.com/pypi/simple/' > ~/.pip/pip.conf

RUN apt-get update && apt-get install -y gcc
RUN apt-get update && apt-get install -y gcc gettext

ENV LC_ALL=C.UTF-8 \
LANG=C.UTF-8
Expand Down
2 changes: 2 additions & 0 deletions src/api/bin/start.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
#!/bin/bash
python manage.py compilemessages

gunicorn wsgi -w 8 --threads 2 --max-requests 1024 --max-requests-jitter 50 --worker-class gevent -b :8000 --access-logfile - --error-logfile - --access-logformat '[%(h)s] %({request_id}i)s %(u)s %(t)s "%(r)s" %(s)s %(D)s %(b)s "%(f)s" "%(a)s"'
2 changes: 1 addition & 1 deletion src/login/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ RUN rm /etc/apt/sources.list && \

RUN mkdir ~/.pip && printf '[global]\nindex-url = https://mirrors.tencent.com/pypi/simple/' > ~/.pip/pip.conf

RUN apt-get update && apt-get install -y gcc
RUN apt-get update && apt-get install -y gcc gettext

ENV LC_ALL=C.UTF-8 \
LANG=C.UTF-8
Expand Down
1 change: 1 addition & 0 deletions src/login/bin/start.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env bash

python manage.py collectstatic
python manage.py compilemessages

command="gunicorn wsgi -w 16 --timeout 150 -b 0.0.0.0:5000 -k gevent --max-requests 1024 --access-logfile '-' --access-logformat '%(h)s %(l)s %(u)s %(t)s \"%(r)s\" %(s)s %(b)s \"%(f)s\" \"%(a)s\" in %(L)s seconds' --log-level INFO --log-file=-"

Expand Down
2 changes: 1 addition & 1 deletion src/saas/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ RUN rm /etc/apt/sources.list && \

RUN mkdir ~/.pip && printf '[global]\nindex-url = https://mirrors.tencent.com/pypi/simple/' > ~/.pip/pip.conf

RUN apt-get update && apt-get install -y gcc
RUN apt-get update && apt-get install -y gcc gettext

ENV LC_ALL=C.UTF-8 \
LANG=C.UTF-8
Expand Down
1 change: 1 addition & 0 deletions src/saas/bin/start.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash
python manage.py compilemessages

gunicorn wsgi -w 8 --threads 2 --max-requests 1024 --max-requests-jitter 50 --worker-class gevent -b :8000 --access-logfile - --error-logfile - --access-logformat '[%(h)s] %({request_id}i)s %(u)s %(t)s "%(r)s" %(s)s %(D)s %(b)s "%(f)s" "%(a)s"'

0 comments on commit beb55e1

Please sign in to comment.