mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-05-20 10:21:32 +00:00
Do not include fallback for case that translations not exist
This commit is contained in:
parent
df1d3fe887
commit
1f0d720ace
2 changed files with 4 additions and 14 deletions
|
|
@ -39,13 +39,8 @@ RUN composer dump-autoload
|
|||
# Create required directories for cache warmup
|
||||
RUN mkdir -p var/cache var/log uploads public/media
|
||||
|
||||
# Generate real translations via cache warmup (needed for webpack build)
|
||||
RUN echo "yes" | php bin/console cache:warmup --env=prod 2>&1 || \
|
||||
(echo "Warning: Cache warmup failed with exit code $?, but continuing..." && \
|
||||
echo "Falling back to stub translations..." && \
|
||||
mkdir -p var/translations && \
|
||||
echo 'export const messages = {};' > var/translations/index.js && \
|
||||
echo 'export const localeFallbacks = {};' >> var/translations/index.js)
|
||||
# Dump translations, which we need for cache warmup
|
||||
RUN php bin/console cache:warmup -n --env=prod 2>&1
|
||||
|
||||
# Copy package files and install node dependencies
|
||||
COPY package.json yarn.lock ./
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue