无法部署到SAP Cloud Foundry [英] Unable to deploy to SAP Cloud foundry

查看:62
本文介绍了无法部署到SAP Cloud Foundry的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

遇到错误-从CLI运行时-cf push

Getting error -- when run from CLI -- cf push

yaml:解组错误:第2行:无法将!! str https:/... 编组为[] string

yaml: unmarshal errors: line 2: cannot unmarshal !!str https:/... into []string

我的manifest.yml文件

my manifest.yml file

applications:
- name: test
  instances: 1
  memory: 256M
  disk_quota: 1024M
  path: ./web
  buildpacks: https://github.com/cloudfoundry/nodejs-buildpack
  services:
    - node-uaa

推荐答案

manifest.yml 中的 buildpacks 条目需要一个字符串数组.错误消息是说它不能将提供的字符串值解组到期望的字符串类型数组.

The buildpacks entry in manifest.yml expects an array of strings. The error message is saying that it can't unmarshall the provided string value to the expected array of strings type.

将条目更改为单数:

  buildpack: https://github.com/cloudfoundry/nodejs-buildpack

或将值包装在数组中:

  buildpacks: [ https://github.com/cloudfoundry/nodejs-buildpack ]

这篇关于无法部署到SAP Cloud Foundry的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆