Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
708 views
in Technique[技术] by (71.8m points)

extjs - Challenges with Production Build

Step 1 sencha -sdk C:/Users/lperepol/Downloads/SenchaEnterpriseExtJS/Unzip_7.xx/ext-7.3.1/ext-7.3.1 generate app -ext CDW ./CDW

Step 2 sencha app build Then move the production folder to Web Server. App displays fine.

Step 3 Add a chart. sencha app watch -- Chart displays fine.

Step 4 sencha app build Then move the production folder to Web Server. App does not display web server error.

How do I get charts to display on a production web server? In development, everything works but not when moved to a Web Server.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

make sure in your app.json you have:

Charts in the requires section.

"requires": [
        "[email protected]",
        "[email protected]",
        "[email protected]",
        "font-awesome" 
    ],

a manifest defined in the bootstrap property.

The bootstrap section should be there but you may have to add the manifest property.

"bootstrap": {
        "base": "${app.dir}",
        "manifest": {
            "path": "bootstrap.json",
            "exclude": ""
        },
        "microloader": "bootstrap.js",
        "css": "bootstrap.css"
    },

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...