简体   繁体   English

如何为 Gradle 项目 spring 引导进行 CF 推送。

[英]How to do CF push for a Gradle project spring boot.?

How to do CF push for a Gradle project spring boot.?如何为 Gradle 项目 spring 引导进行 CF 推送。

What files are needed to be added to project and in build.gradle file?需要将哪些文件添加到项目和 build.gradle 文件中?

You don't need any additional files or configuration for Gradle. Gradle 不需要任何其他文件或配置。 Use Gradle to build a .jar or .war file as usual, then push the archive to CF with a command like像往常一样使用 Gradle 构建.jar.war文件,然后使用类似命令将存档推送到 CF

$ cf push example-app -p build/libs/example-app.jar

You can add a manifest.yml file to the project to store some of the optional settings for the application.您可以将manifest.yml文件添加到项目中,以存储应用程序的一些可选设置。

There is an example of building and pushing a Gradle-built application here: https://github.com/cloudfoundry-samples/spring-music#running-the-application-on-cloud-foundry这里有一个构建和推送 Gradle 构建的应用程序的示例: https://github.com/cloudfoundry-samples/spring-music#running-the-application-on-cloud-foundry

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

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