简体   繁体   English

Bluemix,使用hub.jazz.net部署ruby-on-rails,错误“任何可用buildpack无法检测到应用程序”

[英]Bluemix, deploying ruby-on-rails using hub.jazz.net, error 'An application could not be detected by any available buildpack'

I have created a Bluemix runtime Ruby-on-Rails. 我已经创建了一个Bluemix运行时Ruby-on-Rails。 I am using IBM devops hub.jazz.net, and have setup the Build and Deploy to the bluemix application. 我正在使用IBM devops hub.jazz.net,并已将Build and Deploy设置为bluemix应用程序。

The Build and Deploy gives an error message - 'An application could not be detected by any available buildpack' Build and Deploy给出错误消息-“任何可用的buildpack无法检测到应用程序”

What are the steps to setup the deploy correctly. 正确设置部署的步骤是什么。 How do I troubleshoot this ? 我该如何解决?

Looks like you are deploying using cf from your local setup 看起来您正在从本地设置中使用cf进行部署

And the issue lies with some wrong entry made in manifest.yml. 问题出在manifest.yml中有一些错误的输入。 Please check it and add correct build pack. 请检查并添加正确的构建包。 Sometimes Cloud Foundry can't detect the type of app you are running and when you push the app you need to tell it what kind of app it is. 有时Cloud Foundry无法检测到您正在运行的应用程序类型,当您推送应用程序时,您需要告诉它它是哪种类型的应用程序。 We can do that with some of the following commands. 我们可以使用以下一些命令来做到这一点。

cf buildpacks -- to see list of available build packs cf buildpacks-查看可用构建包的列表

cf push appname -b ruby_buildpack ---pushing app cf push appname -b ruby​​_buildpack ---推送应用

Here is a link that can be helpful to you : 这是一个对您有帮助的链接:

http://www.ibm.com/developerworks/cloud/library/cl-blograils-app/ http://www.ibm.com/developerworks/cloud/library/cl-blograils-app/

I followed https://developer.ibm.com/answers/questions/11653/manifest-yml-what-are-the-mandatory-and-optional-fields.html for manifest.yml. 我遵循https://developer.ibm.com/answers/questions/11653/manifest-yml-what-are-the-mandatory-and-optional-fields.html来查找manifest.yml。

>> cat manifest.yml >>猫manifest.yml

minimum manifest file as in http://docs.cloudfoundry.org/devguide/deploy-apps/manifest.html 最小清单文件,如http://docs.cloudfoundry.org/devguide/deploy-apps/manifest.html中

applications: - name: bluemixstore memory: 512M 应用程序:-名称:bluemixstore内存:512M

I used command WITHOUT the hostname, it moved forward, and gave an error saying my space has run out. 我使用了不带主机名的命令,它向前移动了,并给出一个错误消息,提示我的空间已用完。

cf push bluemixstore -m 512M cf push bluemixstore -m 512M

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM