Hello!
index.html:
and there is in app.json:
after all I did from 123 folder:
and from root folder:
then I go to localhost:1841 in browser and get:
as we could see the route to the Application.js is wrong, it should be:
So, does anybody know where is the problem?
Webserver root is not a root of app. What to do?
My webserver's root directory isn't the same with the ExtJS app directory.
So, I've read http://ift.tt/1LMlf0a
but it hasn't helped to me.
There is the structure of directories:
Code:
/
|- 123
|- .sencha
|- app //app sources (generated by sencha generate app)
|- ext //extjsframework sources
|- .......
|- app.js
|- app.json
|- bootstrap.js
|- bootstrap.json
|- index.html
index.html:
Code:
<!DOCTYPE HTML>
<html manifest="">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="UTF-8">
<title>my</title>
<script id="microloader" type="text/javascript" src="/123/bootstrap.js"></script>
</head>
<body></body>
</html>
and there is in app.json:
Code:
"indexHtmlPath": "../index.html",
"classpath": "${app.dir}/app",
after all I did from 123 folder:
and from root folder:
then I go to localhost:1841 in browser and get:
Code:
GET 404 http://localhost:1841/app/Application.js?_dc=1423067640959
ext-all-rtl-debug.js?_dc=1423067638923:5666 [E] [Ext.Loader] Some requested files failed to load.
as we could see the route to the Application.js is wrong, it should be:
Code:
http://localhost:1841/123/app/Application.js
So, does anybody know where is the problem?
Webserver root is not a root of app. What to do?
Aucun commentaire:
Enregistrer un commentaire