0

我正在尝试在新闻示例应用程序中部署人员,这是错误,找不到启动配置清单或顶级项目清单请恢复它或提供项目清单。 我正在关注这个http://peopleinnews.mybluemix.net/deployinfo.html 当我到达第 8 位时,路径有一个 ' 。'(句点)在我的用户界面上,我无法将其删除以输入 peopleInNews/

peopleinthenews/manifest.yml(下)

applications:
- services:
- ttn-cloudantNoSQLDB
- re-service
disk_quota: 1024M
host: peopleinnews
name: People In News
command: node app.js
path: . 
domain: mybluemix.net
instances: 1
memory: 512M

然后我尝试手动更改路径(下)

applications:
- services:
- ttn-cloudantNoSQLDB
- re-service
disk_quota: 1024M
host: peopleinnews
name: People In News
command: node app.js
path: peopleinnews/
domain: mybluemix.net
instances: 1
memory: 512M

谁能告诉我更多关于项目清单的这个错误是什么?

4

2 回答 2

3

manifest.yml 文件格式不正确。对于您提供的值,这就是它的格式

applications:
- name: People In News
  disk_quota: 1024M
  host: peopleinnews
  command: node app.js
  path: peopleinnews/
  domain: mybluemix.net
  instances: 1
  memory: 512M
  services:
  - ttn-cloudantNoSQLDB
  - re-service

具体来说,services是与其他属性处于同一级别的属性,并且服务名称应该是嵌套在属性下的services属性。

YAML 对于作者来说可能是一种令人困惑的语法;如有疑问,请使用http://cfmanigen.mybluemix.net/上的出色 CF Manifest Generator在线构建您的清单。

于 2015-02-17T04:28:52.853 回答
0

The deployment instruction for the 'People In The News' sample application has been updated in http://peopleinnews.mybluemix.net/deployinfo.html#DeployJazzHub. The important change is in the 'Command' field within the launch configuration panel. Once the correct location of the 'app.js' is specified, the deployment should then go smoothly.

于 2015-06-30T16:00:33.530 回答