Skip to content

Commit a3b0b96

Browse files
committed
Also copy the css map file
1 parent 7b7b4b3 commit a3b0b96

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

extras/docker/demo/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ RUN chmod 0644 /etc/cron.d/wger \
9393
COPY --chown=wger:www-data . /home/wger/src
9494
COPY --chown=wger:wger --from=builder /home/wger/src/node_modules /home/wger/src/node_modules
9595
COPY --chown=wger:wger --from=builder /home/wger/src/wger/core/static/bootstrap-compiled.css /home/wger/src/core/static/bootstrap-compiled.css
96+
COPY --chown=wger:wger --from=builder /home/wger/src/wger/core/static/bootstrap-compiled.css.map /home/wger/src/core/static/bootstrap-compiled.css.map
9697

9798
# Set up the application
9899
RUN ln -s /home/wger/static/CACHE /var/www

extras/docker/production/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ EXPOSE 8000
8888
COPY --chown=wger:wger . /home/wger/src
8989
COPY --chown=wger:wger --from=builder /root/src/node_modules /home/wger/src/node_modules
9090
COPY --chown=wger:wger --from=builder /root/src/wger/core/static/bootstrap-compiled.css /home/wger/src/core/static/bootstrap-compiled.css
91+
COPY --chown=wger:wger --from=builder /root/src/wger/core/static/bootstrap-compiled.css.map /home/wger/src/core/static/bootstrap-compiled.css.map
9192
COPY ${DOCKER_DIR}/settings.py /home/wger/src
9293
COPY ${DOCKER_DIR}/settings.py /tmp/
9394
COPY ${DOCKER_DIR}/entrypoint.sh /home/wger/entrypoint.sh

wger/tasks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,8 +97,8 @@ def bootstrap(context, settings_path=None, database_path=None, process_static=Tr
9797

9898
# Download JS and CSS libraries
9999
if process_static:
100-
context.run('yarn install')
101-
context.run('yarn build:css:sass')
100+
context.run('npm install')
101+
context.run('npm run build:css:sass')
102102

103103

104104
@task(

0 commit comments

Comments
 (0)