我很难在Bluemix上部署此标准电子商务项目: https://github.com/zallaricardo/ecommerce-devops
我选择使用git存储库并通过Bluemix管道服务自动部署。在成功构建并修复了大量错误配置之后,根挑战似乎是为项目编写了manifest.yml文件的正确版本。
如果没有manifest.yml文件,日志会显示以下错误:
Downloading artifacts...DOWNLOAD SUCCESSFUL
Target: https://api.ng.bluemix.net
Updating app loja-virtual-devops in org pfc-devops / space Dev as [email account]...
OK
Uploading loja-virtual-devops...
Uploading app files from: /home/pipeline/d38f0184-33da-44da-ba16-4671b491988a
Uploading 384.1M, 1679 files
228.5M uploaded...
Done uploading
OK
Stopping app loja-virtual-devops in org pfc-devops / space Dev as [email account]...
OK
Starting app loja-virtual-devops in org pfc-devops / space Dev as[email account]...
-----> Downloaded app package (452M)
-----> Downloaded app buildpack cache (4.0K)
Staging failed: An application could not be detected by any available buildpack
FAILED
NoAppDetectedError
TIP: Buildpacks are detected when the "cf push" is executed from within the directory that contains the app source code.
Use 'cf buildpacks' to see a list of supported buildpacks.
Use 'cf logs loja-virtual-devops --recent' for more in depth log information.
对于我相信的清单版本* - 我在这个清单上显示了新的东西* - 确定并且足够,日志显示:
Downloading artifacts...DOWNLOAD SUCCESSFUL
Target: https://api.ng.bluemix.net
FAILED
Error reading manifest file:
yaml: unmarshal errors:
line 2: cannot unmarshal !!seq into map[interface {}]interface {}
manifest.yml文件目前编写如下:
---
- name: loja-virtual-devops
memory: 512M
buildpack: https://github.com/cloudfoundry/java-buildpack
domain: mybluemix.net
我真诚地感谢有关如何修复此应用程序的清单或通过Bluemix成功部署项目的其他方法的任何提示。
答案 0 :(得分:2)
尝试在manifest.yml文件中包含applications
标题。
示例:
applications:
- name: appname
host: app_hostname
buildpack: java_buildpack
instances: 2
memory: 512M
disk_quota: 512M
path: .