airavata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <>
Subject [jira] [Commented] (AIRAVATA-2984) Webpack bundle fails to load during deploy
Date Mon, 12 Aug 2019 23:48:00 GMT


ASF subversion and git services commented on AIRAVATA-2984:

Commit 12f46f60a3743c379bb7a5b0edd56807b6fb056d in airavata-django-portal's branch refs/heads/local-builds
from Marcus Christie
[;h=12f46f6 ]

Revert "AIRAVATA-2984 Generate webpack files in STATIC_ROOT dir"

This reverts commit 22134a0b5b30c09af6d0fdaf2add142beaedf83b.

> Webpack bundle fails to load during deploy
> ------------------------------------------
>                 Key: AIRAVATA-2984
>                 URL:
>             Project: Airavata
>          Issue Type: Bug
>          Components: Django Portal
>            Reporter: Marcus Christie
>            Assignee: Marcus Christie
>            Priority: Major
>             Fix For: 0.19
> {noformat}
> Loading failed for the <script> with source “”.
> {noformat}
> The problem I believe is that Django's webpack-bundle-tracker is bundle information from
the new webpack-stats.json file that is created during the build, instead of the webpack-stats.json
file that is in the /static/ assets directory. The new webpack-stats.json isn't put into the
/static/ assets directory until everything is built and {{./ collectstatic}} runs.
 webpack-bundle-tracker should be configured to read the webpack-stats.json file from the
/static/ assets directory instead.
> h2. TODO
> - [x] Allow production deployments to override the locations of the webpack-stats.json
files and set them to their static directory locations.

This message was sent by Atlassian JIRA

View raw message