Extjs 为生产构建应用程序

Extjs 为生产构建应用程序,extjs,extjs4,extjs4.1,Extjs,Extjs4,Extjs4.1,我找到了这个教程,它解释了如何为生产构建应用程序 我的项目结构如下 ProjRoot --> app *--> ext (this is the extjs folder) *--> model (model folder it contain the model files of the projec) *--> view *--> controller *--> store *--> r

我找到了这个教程,它解释了如何为生产构建应用程序

我的项目结构如下

ProjRoot
 --> app 
     *--> ext (this is the extjs folder)
     *--> model (model folder it contain the model files of the projec)
     *--> view
     *--> controller
     *--> store
     *--> resources
     *--> servercode
 --> app.html
 --> app.js
正如教程所解释的,我从命令提示符导航到ProjRoot并键入以下代码

sencha create jsb -a http://localhost/ProjRoot/app.html -p app.jsb3
这创建了一个文件,即1kb app.jsb3

然后我执行了以下代码

sencha build -p app.jsb3 -d .
这产生了2个文件

1.)app-all.js 3KB

2.)all-classes.js 1KB

app all.js
包含连接在一起的app.js文件的代码,而
all class.js
中没有任何代码;我在里面找到了下面的代码

/*
Copyright(c) 2012 Company Name
*/
根据教程,我应该能够在服务器中添加这2个文件并构建应用程序。但不幸的是,这对我不起作用。帮忙

此外,我还添加了启动html文件,在该文件中我引用了上述两个文件

有人能给我一步一步的指示或告诉我我错过了什么吗

更新

当我按照您的帖子中的描述键入命令时,我遇到以下错误。我如何解决它

C:\xampp\htdocs\ProjRoot>sencha create jsb -a a
pp.html -p proj.jsb3 -v
Error thown from your application with message: TypeError: 'null' is not a const
ructor

我回答了一个不同的问题。这可能会有帮助。我会把它写出来,然后再给你回复。我有一个错误。它说
TypeError:“null”不是构造函数。我已经更新了我的帖子上面的确切错误消息,我得到。Help而不是使用
app.html
我在
sencha create
语句中使用了
localhost/projroot/app.html
,它生成了
jsb3
文件。但是,当我运行第二个命令时,我得到了一个空文件,用于
all class.js
,如我在上面的帖子中所述。(相同错误)验证
jsb3
文件的内容。如果没有列出任何JavaScript文件,则第一个命令失败。如果正确列出文件,则验证路径是否正确。正如Gernomos linked answer中提到的,路径是相对的,因此第二个命令的执行目录很重要。