@ -30,66 +30,104 @@ developed>> in the ``Getting Started'' section up and running in the Cloud.
@@ -30,66 +30,104 @@ developed>> in the ``Getting Started'' section up and running in the Cloud.
[[cloud-deployment-cloud-foundry]]
== Cloud Foundry
Cloud Foundry provides default buildpacks that come into play if no other buildpack is
specified. The Cloud Foundry buildpack has excellent support for Spring applications,
specified. The Cloud Foundry Java buildpack has excellent support for Spring applications,
including Spring Boot. You can deploy stand-alone executable jar applications, as well as
traditional `war` packaged applications.
traditional `.war` packaged applications.
Once you've built your application (using, for example, `mvn clean install`) and
http://docs.cloudfoundry.org/devguide/installcf/[installed the `cf` command line tool],
simply answer the `cf push` command's prompts as follows:
http://docs.run.pivotal.io/devguide/installcf/install-go-cli.html/[installed the `cf`
command line tool], simply answer the `cf push` command prompts as follows, substituting
the path to your compiled `.jar` for mine. Be sure to have
http://docs.run.pivotal.io/devguide/installcf/whats-new-v6.html#login[logged in with your
`cf` command line client] before attempting to use it.
[indent=0,subs="verbatim,quotes,attributes"]
----
$ cf push --path target/demo-0.0.1-SNAPSHOT.jar
----
If there is a Cloud Foundry `manifest.yml` file present in the same directory, it will be
consulted. If not, the client will prompt you with questions it has about how it should
deploy and manage your application, starting with its name: