使用cli的Aurelia构建在不同平台上产生不同的结果

时间:2016-11-28 07:56:02

标签: jenkins aurelia

我试图设置jenkins工作来自动化我们的aurelia应用程序的构建。当我在本地构建应用程序时它100%工作,但是当我使用相同的进程在jenkins上构建它时,脚本目录中的文件是不同的。

我在笔记本电脑上运行Debian测试。詹金斯是在牧场上运行的码头图像。

当我用jenkins测试构建时,我收到以下错误:

http://localhost/src/main.js Failed to load resource: the server responded with a status of 404 (Not Found)
vendor-bundle.js:2 Error: Script error for "main"(…)r @ vendor-bundle.js:2

我的本​​地环境和jenkins都有以下工具和版本:

node: 6.9.1
npm: 3.10.8
aurelia: 0.22.0

该应用程序是用打字稿编写的。

我们也使用aurelia-cli来构建应用程序:" au build --env prod"

我们用来构建应用的过程:

npm install aurelia-cli
npm install
typings install
au build --env prod

任何帮助表示赞赏

0 个答案:

没有答案