我很难在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成功部署项目的其他方法的任何提示 .
1 回答
尝试在manifest.yml文件中包含
applications
Headers .例: