JayGuAtGitHub opened a new issue #12304:
URL: https://github.com/apache/superset/issues/12304


   In my production superset website, I found that it still call the webpack 
debug server like 
   
   http://localhost:9000/sockjs-node/info?t=1609923238691
   
   After long time debug, I found that, in my project folder, /superset/static, 
there were debug js files in that folder like:
   
   /superset/static/assets/dashboard.ede529be.entry.js
   
   When run the docker build command, all these files will be copy to the 
docker environment via the line :
   
   ## Lastly, let's install superset itself
   COPY superset /app/superset
   
   I checked .gitignore file and found it contains (which .dockerignore doesn't 
contain) the following lines:
   
   superset/static/assets
   superset/static/version_info.json
   
   Should it be also included in .dockerignore file?
   
   before fix:
   
   url: /superset/dashboard/20
   
   the end of the html:
   
   
   <!-- Bundle js menu START -->
   --
     |  
     | <script src="/static/assets/vendors-major.ede529be.chunk.js"></script>
     |  
     | <script 
src="/static/assets/vendors-addSlice-crudViews-dashboard-explore-menu-preamble-profile-showSavedQuery-sqllab.ede529be.chunk.js"></script>
     |  
     | <script 
src="/static/assets/vendors-addSlice-crudViews-dashboard-explore-menu-preamble-profile-sqllab.ede529be.chunk.js"></script>
     |  
     | <script 
src="/static/assets/vendors-addSlice-crudViews-dashboard-explore-menu-profile-showSavedQuery-sqllab.ede529be.chunk.js"></script>
     |  
     | <script 
src="/static/assets/vendors-addSlice-crudViews-dashboard-explore-menu-profile-sqllab.ede529be.chunk.js"></script>
     |  
     | <script 
src="/static/assets/vendors-addSlice-crudViews-dashboard-explore-menu-sqllab.ede529be.chunk.js"></script>
     |  
     | <script src="/static/assets/menu.ede529be.entry.js"></script>
     |  
     | <!-- Bundle js menu END -->
     |  
     |  
     |  
     |  
     | <!-- Bundle js dashboard START -->
     |  
     | <script src="/static/assets/0.ede529be.chunk.js"></script>
     |  
     | <script src="/static/assets/1.ede529be.chunk.js"></script>
     |  
     | <script src="/static/assets/5.ede529be.chunk.js"></script>
     |  
     | <script 
src="/static/assets/vendors-addSlice-crudViews-dashboard-explore-profile-showSavedQuery-sqllab.ede529be.chunk.js"></script>
     |  
     | <script 
src="/static/assets/vendors-addSlice-crudViews-dashboard-explore-profile-sqllab.ede529be.chunk.js"></script>
     |  
     | <script 
src="/static/assets/vendors-addSlice-crudViews-dashboard-explore-sqllab.ede529be.chunk.js"></script>
     |  
     | <script src="/static/assets/7.ede529be.chunk.js"></script>
     |  
     | <script 
src="/static/assets/vendors-addSlice-crudViews-dashboard-explore.ede529be.chunk.js"></script>
     |  
     | <script 
src="/static/assets/vendors-crudViews-dashboard-explore-sqllab.ede529be.chunk.js"></script>
     |  
     | <script src="/static/assets/9.ede529be.chunk.js"></script>
     |  
     | <script src="/static/assets/10.ede529be.chunk.js"></script>
     |  
     | <script 
src="/static/assets/vendors-dashboard-explore.ede529be.chunk.js"></script>
     |  
     | <script 
src="/static/assets/vendors-dashboard-sqllab.ede529be.chunk.js"></script>
     |  
     | <script 
src="/static/assets/vendors-crudViews-dashboard.ede529be.chunk.js"></script>
     |  
     | <script src="/static/assets/dashboard.ede529be.entry.js"></script>
     |  
     | <!-- Bundle js dashboard END -->
   
   wrong request example:
   
   
![image](https://user-images.githubusercontent.com/9403854/103761353-804c7700-5051-11eb-8c23-dfdea9f15f9b.png)
   
   
   
   
   after fix 
   
   url: the same url
   
   end of html:
   
   
   <!-- Bundle js menu START -->
   --
     |  
     | <script 
src="/static/assets/vendors-major.8bbbbd6861e6fcf3ab0a.p.chunk.js"></script>
     |  
     | <script 
src="/static/assets/vendors-addSlice-menu-preamble-profile.8691d15f3774d396769f.p.chunk.js"></script>
     |  
     | <script 
src="/static/assets/menu.34a393af25687694f53f.p.entry.js"></script>
     |  
     | <!-- Bundle js menu END -->
     |  
     |  
     |  
     |  
     | <!-- Bundle js dashboard START -->
     |  
     | <script src="/static/assets/1.73836e34a18efb7519a2.p.chunk.js"></script>
     |  
     | <script 
src="/static/assets/dashboard.ad893fc5e808044d0535.p.entry.js"></script>
     |  
     | <!-- Bundle js dashboard END -->
   
   
   
   
   
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to