vendredi 6 février 2015

Cmd relative path issue

I'm trying to build a new Ext 5.1 app using Node.js. Everything is loading fine in the browser when using the index.html file and microloader, until it gets to the first app view (view/Main.js).

Here is the code structure of my web project:



HTML Code:



myproject/static/App/*
myproject/views/index.html

My index.html page loads fine (I know you can't get to that url, just pointing out the path structure from the browser perspective):

http://ift.tt/16pQJZ9


Since I updated app.json to handle relative paths per the docs:



Code:



"indexHtmlPath": "../../views/index.html",



The bootstrap.js and .json, and a ton of css/js files and even my new app file loaded correctly:

http://ift.tt/16pQKfp


but it fails once it gets to my actual app, since its going to the wrong directory:


http://ift.tt/16pQKfr


but the bootstrap.json file correctly tells it to load the relative path to ../static/:



Code:



{"paths":{"App.Application":"../static/App/app/Application.js","App.view.main.Main":"../static/App/app/view/main/Main.js",
....

Any ideas?

Also, should I consider just doing 'sencha app watch' and using a development build (is that fast enough on a large app and decent machine to not wait for changes to a few controllers/views to process?)


Thanks!






Cmd relative path issue

Aucun commentaire:

Enregistrer un commentaire