且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用STS在Pivotal Cloud Foundry上部署示例应用程序(Spring Boot 1.3.4,JSP,WAR打包)时出错

更新时间:2023-09-12 22:33:46

使用- CF Java构建包.

运行以下命令:

cf push webAppSpaceName -p spring-boot-sample-tomcat-jsp-1.3.3.RELEASE.war -b https://github.com/cloudfoundry/java-buildpack.git

由于您使用的是Spring-Boot-13.2.2.RELEASE,因此您可能会遇到

Since you are using Spring-Boot-1.3.2.RELEASE you might face this Issue.

更新:

有关构建包的更多信息:

More info on Build packs:

Buildpacks为您的应用程序提供框架和运行时支持. Buildpacks通常会检查用户提供的工件,以确定要下载的依赖项以及如何配置应用程序以与绑定的服务进行通信.

Buildpacks provide framework and runtime support for your applications. Buildpacks typically examine user-provided artifacts to determine what dependencies to download and how to configure applications to communicate with bound services.

您不必明确提及要使用的Buildpack,Cloud Foundry会自动检测到需要哪个Buildpack并将其安装在需要运行应用程序的Droplet执行代理(DEA)上. 参考.

You don't have to explicitly mention which Buildpack to use, Cloud Foundry automatically detects which buildpack is required and installs it on the Droplet Execution Agent (DEA) where the application needs to run. Reference.

但是***指定以便CF使用最新的Build Pack.

But it is good to specify so that CF uses the latest Build pack.

您可以在项目的manifest.yml文件中指定构建包,然后使用仪表板进行部署:

You can specify the Build pack in manifest.yml file in your project and then deploy using Dashboard:

buildpack: https://github.com/cloudfoundry/java-buildpack

但是,CF CLI具有更多选项和功能.

However, CF CLI has more options and features.