Fixed build problems with i18n
This commit is contained in:
parent
4848698d63
commit
29fc48f4fe
2 changed files with 3 additions and 2 deletions
|
@ -26,7 +26,8 @@ RUN apk update && apk add \
|
|||
uwsgi-python3 \
|
||||
git \
|
||||
python3 \
|
||||
python3-dev
|
||||
python3-dev \
|
||||
gettext
|
||||
|
||||
# COPY requirements.txt and RUN pip install BEFORE adding the rest of your
|
||||
# code, this will cause Docker's caching mechanism to prevent re-installing
|
||||
|
|
|
@ -7,7 +7,7 @@ from os import path
|
|||
if __name__ == '__main__':
|
||||
env_path = path.join(path.dirname(path.realpath(__file__)), '.env')
|
||||
if not os.path.exists(env_path) and len(sys.argv) >= 2 and len(sys.argv) <= 3 \
|
||||
and sys.argv[1] == 'collectstatic':
|
||||
and (sys.argv[1] == 'collectstatic' or sys.argv[1] == 'compilemessages'):
|
||||
os.environ['POSTGRES_DB'] = ''
|
||||
os.environ['POSTGRES_HOST'] = ''
|
||||
os.environ['POSTGRES_USER'] = ''
|
||||
|
|
Loading…
Reference in a new issue