PDA

View Full Version : SDK Tools app.json url and server-side resources



estesbubba
12 Jul 2012, 8:41 AM
We have a core product that is customized for clients. Currently the developer does "sencha app build production" when they make a core change. Problem is now he needs to open every other client and do the same which is bound to cause problems down the road. We want to get the build production into our Ant build process but currently need to have the app running in a development environment.

Here is the documentation for the url config in app.json



/**
* The absolute URL to this application in development environment, i.e: the URL to run this application
* on your web browser during development, e.g: "http://localhost/myapp/index.html".
*
* This value is needed when build to resolve your application's dependencies if it requires server-side resources
* that are not accessible via file system protocol.
*/
"url": "http://localhost:8080/lex/client/mobile/mobileDevelopment.do",




Setting this to null gives us errors but I believe all JavaScript is accessible via the file system. Could be an AJAX call being made? Is there a way to log what is going on and see what is causing the problem?

mitchellsimoens
14 Jul 2012, 7:00 AM
There isn't much Sencha Command spits out for errors (have been wanting to dig into that to see if I can do it when I have some free time).

One of the things Sencha Command uses is PhantomJS which will load your app to evaluate Ext.Loader for required files. If a class isn't required then I can see PhantomJS not including it but it technically should let the build continue.

casic
15 Jul 2012, 12:33 AM
I have a project with ajax.request wich work normaly . But when i start sencha app buid native to package it for android , there was a problem.
The web package /minified/ generated after this comand work normaly when there is no ajax.request .
But when i make ajax.request to .php file on the server


Failed to load resource: the server responded with a status of 404 (Not Found)

Uncaught TypeError: object is not a function

www.server.com/myproject/app/view/XXXX.js?_dcXXXXXXXXx (http://www.server.com/myproject/app/view/XXXX.j?_dcXXXXXXXXx)