-
18 Nov 2012 9:18 PM #1
Answered: Production Build not working
Answered: Production Build not working
Hi,
I had developed an app with name Myapp. Now i want to put it on server, for that i had used sencha command to generate production build.
Command used on window: C:\wamp\www\Myapp>sencha app build production
It successfully generated cache.manifest
Now i had put Myapp/build/production directory on server but i am getting below message:
Creating Application Cache with manifest http://test.demo/cache.manifest
Application Cache Checking event
Application Cache Downloading event
Application Cache Progress event (0 of 1) http://test.demo/index.html
Application Cache Progress event (1 of 1)
Application Cache Cached event
- [COLOR=red !important]GET http://test.demo/src/log/Logger.js?_dc=1353301129626 404 (Not Found) /src/log/Logger.js?_dc=1353301129626:1[/COLOR]
- [COLOR=red !important]Uncaught Error: [Ext.Loader] Failed loading 'src/log/Logger.js', please verify that the file exists[/COLOR]
-
Best Answer Posted by deepakgarg89
The above issue is now resolved, i had done a lot of search to fix the issue.
This problem fixed by doing a little change in app.json. On bottom there is buildoptions. There you need to change "logger": "no" to "logger": false
Previously it was :
After fixing the issue, it is now:Code:"buildOptions:": { "product": "touch", "minVersion": 3, "debug": false, "logger": "no" }
Code:"buildOptions:": { "product": "touch", "minVersion": 3, "debug": false, "logger": false }
-
18 Nov 2012 10:52 PM #2
are you sure that you dont have error in your script ?
-
19 Nov 2012 12:04 AM #3
Here i am posting the cmd screen messages which i got during creating build
Here i am posting the cmd screen messages which i got during creating build
C:\wamp\www\Myapp>sencha app build production
[INFO] Deploying your application to C:\wamp\www\Myapp\build\production
[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 (file:///C:/wamp/www/Myapp/index
.html)
[INFO] Found 146 dependencies. Concatenating all into 'C:\wamp\www\Myapp\build\
production\app.js'
[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] 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
-
28 Nov 2012 8:16 PM #4
Hi,
Hi,
The above issue is now resolved, i had done a lot of search to fix the issue.
This problem fixed by doing a little change in app.json. On bottom there is buildoptions. There you need to change "logger": "no" to "logger": false
Previously it was :
After fixing the issue, it is now:Code:"buildOptions:": { "product": "touch", "minVersion": 3, "debug": false, "logger": "no" }
Code:"buildOptions:": { "product": "touch", "minVersion": 3, "debug": false, "logger": false }


Reply With Quote