2017-04-04 42 views
0

步驟:春天開機與bluemix錯誤:buildpacks沒有檢測到兼容的應用程序

  1. 創建新的項目,start.spring.io
  2. 來看,它localy - 工程
  3. 運行gradle這個任務jar
  4. 推罐子bluemix cf push demoWar.jar

Downloaded app package (20.1M) Staging... None of the buildpacks detected a compatible application Exit status 222 Staging failed: Exited with status 222 Destroying container

FAILED Error restarting application: NoAppDetectedError

TIP: Buildpacks are detected when the "cf push" is executed from within the dire ctory that contains the app source code.

回答

1

嘗試兩件事: 1.使用-p命令來定位可部署的工件。這看起來像cf p APP_NAME -p PATH_TO_YOUR_WAR。我通常鏈接我的構建和部署命令,以便:mvn clean package & & cf p APP_NAME -p PATH_TO_YOUR_WAR。

  1. 如果這不起作用,那麼您可以指定一個構建包。因此請參閱p APP_NAME -p PATH_TO_YOUR_WAR -b SOME_BUILDPACK。您可以通過調用cf buildpacks來查看可用的構建包。

希望這會有所幫助。