Hello all,

I have a issue with Sencha Cmd.

In my app, I first load the framework, then I generate settings in JS format on server, and then my app launches with the settings retrieved from the server. See below:

app.json
Code:

Code:
{
  "name": "Acente.mobi",
  "indexHtmlPath": "index.html",
  "url": null,
  "js": [
    {
      "path": "touch/sencha-touch.js",
      "x-bootstrap": true
    },
    {
      "path": "http://acente.local:8080/admin/gateway/index.php/settings/setting?mode=app",
      "remote": true
    },
    {
      "path": "app.js",
      "bundle": true,
      "update": "delta"
    },
    {
      "path": "http://maps.google.com/maps/api/js?sensor=true",
      "remote": true
    },
    {
      "path": "resources/source/langs/tur.js"
    },
    {
      "path": "lang.js",
      "update": "delta"
    },
  ],
  "css": [
    {
      "path": "resources/css/app.css",
      "update": "delta"
    }
  ],
  "appCache": {
    "cache": [
      "index.html"
    ],
    "network": [
      "*"
    ],
    "fallback": []
  },
  "resources": [
    "resources/images",
    "resources/icons",
    "resources/startup"
  ],
  "ignore": [
    ".svn$"
  ],
  "archivePath": "archive",
  "id": "a64ea987-ecb3-419b-9510-80134981238f"
}


So, when I build this with Testing mode, app.js contains everything including the framework and my app files. And the remote "setting" is added as a <script/> tag into the index.html.

This breaks my application, because my app files make use of the settings on this remote script. Do you have any idea how to solve this issue? I cant see any way to interfere with the building process.

Maybe I should find another way in my app.js or in the initial controller to make my settings retrieved from the server usable for the app.

Any ideas?