Skip to content

Commit d2af49e

Browse files
committedMar 28, 2014
Improve cf push examples
Previously, the examples in this repository for pushing applications read as `cf push -b https://github.com/cloudfoundry/java- buildpack.git`. While this would work in cases where there was a manifest for the application, it lead to confusion among users. This change makes the examples more verbose, but much more clear and, we hope, reduce the amount of confusion. see: https://groups.google.com/a/cloudfoundry.org/d/topic/vcap-dev/ROJfb0SJ5PA/discussion [#68430712]
1 parent dd8d897 commit d2af49e

7 files changed

+11
-11
lines changed
 

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ The `java-buildpack` is a [Cloud Foundry][] buildpack for running JVM-based appl
1010
To use this buildpack specify the URI of the repository when pushing an application to Cloud Foundry:
1111

1212
```bash
13-
cf push -b https://github.com/cloudfoundry/java-buildpack
13+
cf push <APP-NAME> -p <ARTIFACT> -b https://github.com/cloudfoundry/java-buildpack.git
1414
```
1515

1616
## Examples

‎docs/example-grails.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The Java Buildpack treats Grails applications as normal Servlet applications bui
55

66
```bash
77
$ ./grailsw war
8-
$ cf push -m 768M -p target/grails-application-0.1.war -b https://github.com/cloudfoundry/java-buildpack.git
8+
$ cf push grails-application -m 768M -p target/grails-application-0.1.war -b https://github.com/cloudfoundry/java-buildpack.git
99
-----> Downloading Open Jdk JRE 1.7.0_51 from http://.../openjdk/lucid/x86_64/openjdk-1.7.0_51.tar.gz (0.0s)
1010
Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.1s)
1111
-----> Downloading Spring Auto Reconfiguration 0.8.7 from http://.../auto-reconfiguration/auto-reconfiguration-0.8.7.jar (0.0s)

‎docs/example-groovy.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ The Java Buildpack can run Groovy applications written with the [Ratpack framewo
55
The following example shows how deploy the sample application located in the [Java Test Applications][j].
66

77
```bash
8-
$ cf push -b https://github.com/cloudfoundry/java-buildpack.git
8+
$ cf push groovy-application -b https://github.com/cloudfoundry/java-buildpack.git
99
-----> Downloading Open Jdk JRE 1.7.0_51 from http://.../openjdk/lucid/x86_64/openjdk-1.7.0_51.tar.gz (0.0s)
1010
Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.3s)
1111
-----> Downloading Spring Auto Reconfiguration 0.8.7 from http://.../auto-reconfiguration/auto-reconfiguration-0.8.7.jar (0.0s)

‎docs/example-java_main.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The following example shows how deploy the sample application located in the [Ja
66

77
```bash
88
$ gradle build
9-
$ cf push -p build/libs/java-main-application-1.0.0.BUILD-SNAPSHOT.jar -b https://github.com/cloudfoundry/java-buildpack.git
9+
$ cf push java-main-application -p build/libs/java-main-application-1.0.0.BUILD-SNAPSHOT.jar -b https://github.com/cloudfoundry/java-buildpack.git
1010

1111
-----> Downloading Open Jdk JRE 1.7.0_51 from http://.../openjdk/lucid/x86_64/openjdk-1.7.0_51.tar.gz (0.0s)
1212
Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.2s)
@@ -22,7 +22,7 @@ The following example shows how deploy the sample application located in the [Ja
2222

2323
```bash
2424
$ mvn package
25-
$ cf push -p target/java-main-application-1.0.0.BUILD-SNAPSHOT.jar -b https://github.com/cloudfoundry/java-buildpack.git
25+
$ cf push java-main-application -p target/java-main-application-1.0.0.BUILD-SNAPSHOT.jar -b https://github.com/cloudfoundry/java-buildpack.git
2626

2727
-----> Downloading Open Jdk JRE 1.7.0_51 from http://.../openjdk/lucid/x86_64/openjdk-1.7.0_51.tar.gz (0.0s)
2828
Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.2s)

‎docs/example-play_framework.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The following example shows how deploy the sample application located in the [Ja
66

77
```bash
88
$ play dist
9-
$ cf push -p target/universal/play-application-1.0-SNAPSHOT.zip -b https://github.com/cloudfoundry/java-buildpack.git
9+
$ cf push play-application -p target/universal/play-application-1.0-SNAPSHOT.zip -b https://github.com/cloudfoundry/java-buildpack.git
1010

1111
-----> Downloading Open Jdk JRE 1.7.0_51 from http://.../openjdk/lucid/x86_64/openjdk-1.7.0_51.tar.gz (0.0s)
1212
Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.2s)
@@ -23,7 +23,7 @@ The following example shows how deploy the sample application located in the [Ja
2323

2424
```bash
2525
$ play stage
26-
$ cf push -p target/universal/stage -b https://github.com/cloudfoundry/java-buildpack.git
26+
$ cf push play-application -p target/universal/stage -b https://github.com/cloudfoundry/java-buildpack.git
2727

2828
-----> Downloading Open Jdk JRE 1.7.0_51 from http://.../openjdk/lucid/x86_64/openjdk-1.7.0_51.tar.gz (0.0s)
2929
Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.2s)

‎docs/example-servlet.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The following example shows how deploy the sample application located in the [Ja
66

77
```bash
88
$ gradle build
9-
$ cf push -p build/libs/web-servlet-2-application-1.0.0.BUILD-SNAPSHOT.war -b https://github.com/cloudfoundry/java-buildpack.git
9+
$ cf push web-servlet-2-application -p build/libs/web-servlet-2-application-1.0.0.BUILD-SNAPSHOT.war -b https://github.com/cloudfoundry/java-buildpack.git
1010

1111
-----> Downloading Open Jdk JRE 1.7.0_51 from http://.../openjdk/lucid/x86_64/openjdk-1.7.0_51.tar.gz (0.0s)
1212
Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.1s)
@@ -26,7 +26,7 @@ The following example shows how deploy the sample application located in the [Ja
2626

2727
```bash
2828
$ mvn package
29-
$ cf push -p cf push -p target/web-servlet-2-application-1.0.0.BUILD-SNAPSHOT.war -b https://github.com/cloudfoundry/java-buildpack.git -b https://github.com/cloudfoundry/java-buildpack.git
29+
$ cf push web-servlet-2-application -p target/web-servlet-2-application-1.0.0.BUILD-SNAPSHOT.war -b https://github.com/cloudfoundry/java-buildpack.git -b https://github.com/cloudfoundry/java-buildpack.git
3030

3131
-----> Downloading Open Jdk JRE 1.7.0_51 from http://.../openjdk/lucid/x86_64/openjdk-1.7.0_51.tar.gz (0.0s)
3232
Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.1s)

‎docs/example-spring_boot_cli.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ The following example shows how deploy the sample application located in the [Ja
66

77
```bash
88
$ spring grab *.groovy
9-
$ $ cf push -b https://github.com/cloudfoundry/java-buildpack.git
9+
$ $ cf push spring-boot-cli-application -b https://github.com/cloudfoundry/java-buildpack.git
1010

1111
-----> Downloading Open Jdk JRE 1.7.0_51 from http://.../openjdk/lucid/x86_64/openjdk-1.7.0_51.tar.gz (0.0s)
1212
Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.2s)
@@ -24,7 +24,7 @@ The following example shows how deploy the sample application located in the [Ja
2424

2525
```bash
2626
$ spring jar spring-boot-cli-application-1.0.0.BUILD-SNAPSHOT.jar *.groovy
27-
$ cf push -p spring-boot-cli-application-1.0.0.BUILD-SNAPSHOT.jar -b https://github.com/cloudfoundry/java-buildpack.git
27+
$ cf push spring-boot-cli-application -p spring-boot-cli-application-1.0.0.BUILD-SNAPSHOT.jar -b https://github.com/cloudfoundry/java-buildpack.git
2828

2929
-----> Downloading Open Jdk JRE 1.7.0_51 from http://.../openjdk/lucid/x86_64/openjdk-1.7.0_51.tar.gz (0.0s)
3030
Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.2s)

0 commit comments

Comments
 (0)
Please sign in to comment.