sencha app build production does not work
I do the following two things:
1. sencha app create MyApp path
2.sencha app build production
I assume I can access http://localhost/MyApp/build/production, while I can not, anyone can help to tell me what's wrong?
And I can access http://localhost/MyApp
My question is, does that mean my production build failed, here is the log, it show succeed:
[INFO] Deploying your application to C:\xampp\htdocs\testpackage\build\productio
[INFO] Copied sdk/sencha-touch.js
[INFO] Copied app.js
[INFO] Copied resources/css/app.css
[INFO] Copied resources/images
[INFO] Copied resources/icons
[INFO] Copied resources/startup
[INFO] Resolving your application dependencies (http://localhost:8088/testpackag
[INFO] Found 139 dependencies. Concatenating all into 'C:\xampp\htdocs\testpacka
[INFO] Processed sdk/sencha-touch.js
[INFO] Minifying sdk/sencha-touch.js
[INFO] Processed app.js
[INFO] Minifying app.js
[INFO] Minifying resources/css/app.css
[INFO] Minified sdk/sencha-touch.js
[INFO] Minified app.js
[INFO] Generated delta for: 'app.js' from hash: '2b5cd1995d8d87ac3516f6928cf7fc1
6690f44a9' to hash: 'b2db556a358e56bf47c02ce2fe2b07bea4546baa'
[INFO] Minified resources/css/app.css
[INFO] Generated app.json
[INFO] Embedded microloader into index.html
[INFO] Generating checksum for appCache item: index.html
[INFO] Generated cache.manifest
I just ran both of those commands on my Mac OSX, without doing anything else. It works just fine for me.
Does "sencha app build production" actually output files into the /build/production/ folder? It does for me, and navigating to them in my browser (also on a localhost) seems to work just perfectly.
Here is the three item need to clarify
1. I am in Win7 + XAMPP env
2. The web works fine before going to build/production
3. The command successful generate the build/production folder and related file
I am using latest sdk download from website, and my team mate met the same issue..
We are not luck to have a mac to check whether it works fine there.
Nothing you've mentioned makes me think there's an issue with the SDK Tools specifically (at least not yet).
When you try to view the /build/production/ folder in your browser, do you see any errors in the debugging console?
[COLOR=red !important]Here is the error in chrome.
XMLHttpRequest cannot load file:///C:/xampp/htdocs/hcmpilot/bui...?1343351056882. Cross origin requests are only supported for HTTP.[/COLOR]
- [COLOR=red !important]index.html:67Uncaught TypeError: Cannot call method 'setConfig' of undefined[/COLOR]
If you're seeing that error in Chrome, you must not be trying to view /build/production/ on a localhost.
That error message means that you're loading the index.html file via the filesystem (not a webserver, like localhost) - and Chrome does not allow AJAX requests locally from the filesystem.
Try going to http://localhost/build/production/ (or whatever the correct path would be) and see if you still get any errors.