sencha extjs 5.0应用程序在生产构建中不起作用 [英] sencha extjs 5.0 app not working in production build

查看:94
本文介绍了sencha extjs 5.0应用程序在生产构建中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚使用extjs 5.0构建了一个新的应用程序,这似乎真的很棒。该应用程序在开发模式下工作正常,但是一旦使用命令行工具构建应用程序并部署它,它将停止工作。

i have just built a new app with extjs 5.0 which seems to be really awesome. the app is working fine in development mode, but as soon as i build the app with the command line tools and deploy it, it stops working.

我使用的构建命令当我在项目的目录中:

the build command i use when i'm in the directory of the project:

sencha app build production


我正在使用一个PHP服务器端,所以我必须将index.html的结尾改为index.php,并在生产服务器中再次手动添加php文件夹。 (我没有找到如何在构建过程中改变它)

the command works fine so far, no error is in the output. i'm using a little server-side with php, so i have to change the ending of the index.html to index.php and also include the php folder again manually in the production server. (i didn't find out how to change that in the build process itself)

到目前为止,在我的索引文件的基本输出中,一切似乎都很好,但是该应用程序将无法启动,因为控制台中出现错误:

so far, everything seems fine for me in the basic output of my index file, but the app won't start because of an error in the console:

GET http://admin.vp24.com/.js?_dc=1404608946314 404 (Not Found) (index):23
Uncaught TypeError: object is not a function 

Ext尝试包括在哪里?当我在开发模式下启动应用程序时,我看到许多包括基本类文件和网络选项卡中的东西,这里只有一个包含一个名为.js的空文件,这似乎完全被打破了。

what does Ext try to include here? when i start the app in development mode i see many includes of basic class files and stuff in the network tab which works - here it only starts with an include of an empty file called ".js" which seems totally broken.

我试图调试app.js文件(我认为的基本Ext东西)的部分fetchSync,以找出我尝试在那一点包含哪些东西,似乎对我来说,这是gridfilters-plugin。

i tried to debug the part "fetchSync" of the app.js file (the basic Ext stuff i think) to find out which thing i he tries to include at that point and it seems to me that it is the gridfilters-plugin. Some variables are suddenly null during all that steps there and i don't know why.

应用程序可能出了什么问题?

what can be wrong with the app?

推荐答案

尝试 sencha应用构建测试,看看是否有任何运行时错误。

Try sencha app build testing and see if you get any runtime errors.

不要忘记在你的devtools中暂停例外,所以你可以走栈跟踪找到凶手。

Don't forget to "pause on exceptions" in your devtools, so you can walk the stack trace and find the culprit.

这篇关于sencha extjs 5.0应用程序在生产构建中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆