【问题标题】:How do deploy nodejs angular2 application in cloudfoundry如何在 Cloud Foundry 中部署 node js angular 2 应用程序
【发布时间】:2017-03-03 11:51:50
【问题描述】:

源代码可以在这里找到

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

好像 cloudfoundry 无法确定我的 nodejs 应用程序的健康状况

我用来推送这个应用的方式:

cf push node-hj

这里是 cloudfoundry 日志

我尝试通过流来推送这个应用程序:

cf push node-hj -c "node start"

和上面一样的错误

【问题讨论】:

  • 您遇到的错误是什么,日志说明了什么,您的配置、清单文件等是什么样的?

标签: node.js angular cloud-foundry


【解决方案1】:

您很可能面临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 > angular-quickstart@1.0.0 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 > angular-quickstart@1.0.0 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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-10-11
    • 1970-01-01
    相关资源
    最近更新 更多