airavata-issues mailing list archives

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

    [ https://issues.apache.org/jira/browse/AIRAVATA-2984?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16905677#comment-16905677
] 

ASF subversion and git services commented on AIRAVATA-2984:
-----------------------------------------------------------

Commit 7f1102d2ce576ec8b3417e389ecf3fcb0a3edd45 in airavata-django-portal's branch refs/heads/local-builds
from Marcus Christie
[ https://gitbox.apache.org/repos/asf?p=airavata-django-portal.git;h=7f1102d ]

Revert "AIRAVATA-2984 Load webpack-stats.json from STATIC_ROOT"

This reverts commit e2b13d4808601f3cb0e5f04846aa7681297996e1.


> Webpack bundle fails to load during deploy
> ------------------------------------------
>
>                 Key: AIRAVATA-2984
>                 URL: https://issues.apache.org/jira/browse/AIRAVATA-2984
>             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 “https://beta.gateway.simvascular.org/static/django_airavata_admin/dist/js/app.d5795752.js”.
> {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 {{./manage.py 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
(v7.6.14#76016)

Mime
View raw message