2017-03-02 50 views
-1

的源代碼angular2應用程序可以在這裏找到如何部署中的NodeJS cloudfoundry

https://github.com/angular/quickstart.git 

好像cloudfoundry不能確定我的應用程序的NodeJS

我用推此應用程序的方式的健康:

cf push node-hj 

這裏有cloudfoundry日誌

enter image description here

我試圖用流動推動這個應用程序:

cf push node-hj -c "node start" 

同樣的錯誤上面

+0

什麼是你得到的錯誤,日誌說什麼,你的配置,清單文件等是怎麼樣的? – LBA

回答

0

你很可能面臨https://github.com/angular/quickstart/issues/215

中提到的問題,至少這是一個我可以見:

$ cf dev start 
$ git clone https://github.com/angular/quickstart.git . 
$ cf push test 
$ cf logs test --recent 
[skipped] 
2017-03-02T19:05:17.67+0800 [APP/PROC/WEB/0]OUT > [email protected] prestart /home/vcap/app 
2017-03-02T19:05:17.67+0800 [APP/PROC/WEB/0]OUT > npm run build 
2017-03-02T19:05:18.09+0800 [APP/PROC/WEB/0]OUT > [email protected] build /home/vcap/app 
2017-03-02T19:05:18.09+0800 [APP/PROC/WEB/0]OUT > tsc -p src/ 
2017-03-02T19:05:18.09+0800 [APP/PROC/WEB/0]ERR sh: 1: tsc: not found