java – 带有bluemix错误的spring boot:没有buildpacks检测到兼容的应用程序
作者:互联网
脚步:
>使用start.spring.io创建新项目
>运行它localy – 工作
>运行gradle任务jar
>将jar推送到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 containerFAILED 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.使用-p命令定位可部署工件.这看起来像cf p APP_NAME -p PATH_TO_YOUR_WAR.我通常链接我的构建和部署命令,因此:mvn clean package&& cf p APP_NAME -p PATH_TO_YOUR_WAR.
>如果这不起作用,则可以指定构建包.所以请参阅p APP_NAME -p PATH_TO_YOUR_WAR -b SOME_BUILDPACK.您可以通过调用cf buildpacks来查看可用的构建包.
希望这可以帮助.
标签:java,spring,spring-boot-2,ibm-cloud 来源: https://codeday.me/bug/20190716/1474585.html