Skip to content

Commit 251b654

Browse files
committed
Removing some refs to Heroku
1 parent a2019de commit 251b654

File tree

1 file changed

+12
-16
lines changed

1 file changed

+12
-16
lines changed

README.md

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,9 @@
1-
This quickstart will get you going with Java and the [Jetty](http://eclipse.org/jetty/) embedded web server, deployed to Heroku.
2-
3-
{.note}
4-
Sample code for the [Java demo application](https://github.com/heroku/devcenter-java) is available on GitHub. Edits and enhancements are welcome.
1+
This quickstart will get you going with Java and the [Jetty](http://eclipse.org/jetty/) embedded web server.
52

63
## Prerequisites
74

85
* Basic Java knowledge, including an installed version of the JVM and [Maven 3](http://maven.apache.org/download.html).
96
* Your application must run on the [OpenJDK](http://openjdk.java.net/) version 6, or 7 (8 is also available in beta).
10-
* A Heroku user account. [Signup is free and instant.](https://api.heroku.com/signup/devcenter)
117

128
## Local workstation setup
139

@@ -19,16 +15,16 @@ Once installed, you can use the `heroku` command from your command shell. Log i
1915
$ heroku login
2016
Enter your Heroku credentials.
2117
22-
Password:
18+
Password:
2319
Could not find an existing public key.
24-
Would you like to generate one? [Yn]
20+
Would you like to generate one? [Yn]
2521
Generating new SSH public key.
2622
Uploading ssh public key /Users/adam/.ssh/id_rsa.pub
2723

2824
Press enter at the prompt to upload your existing `ssh` key or create a new one, used for pushing code later on.
2925

3026
## Write your app
31-
27+
3228
You can run any Java application on Heroku that uses Maven as build tool. As an example, we will write a web app using Jetty. Here is a basic servlet class that also contains a main method to start up the application:
3329

3430
### src/main/java/HelloWorld.java
@@ -55,7 +51,7 @@ You can run any Java application on Heroku that uses Maven as build tool. As an
5551
server.setHandler(context);
5652
context.addServlet(new ServletHolder(new HelloWorld()),"/*");
5753
server.start();
58-
server.join();
54+
server.join();
5955
}
6056
}
6157

@@ -67,8 +63,8 @@ Cedar recognizes Java apps by the existence of a `pom.xml` file. Here's an examp
6763

6864
:::xml
6965
<?xml version="1.0" encoding="UTF-8"?>
70-
<project xmlns="http://maven.apache.org/POM/4.0.0"
71-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
66+
<project xmlns="http://maven.apache.org/POM/4.0.0"
67+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
7268
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
7369
<modelVersion>4.0.0</modelVersion>
7470
<groupId>com.example</groupId>
@@ -141,7 +137,7 @@ You should now see something similar to:
141137
2012-01-31 15:51:21.931:INFO:oejsh.ContextHandler:started o.e.j.s.ServletContextHandler{/,null}
142138
2012-01-31 15:51:21.971:INFO:oejs.AbstractConnector:Started [email protected]:5000
143139

144-
Open the app in your browser:
140+
Open the app in your browser:
145141
[http://localhost:5000](http://localhost:5000)
146142

147143

@@ -202,7 +198,7 @@ Deploy your code:
202198
-----> Installing settings.xml... done
203199
-----> executing /app/tmp/repo.git/.cache/.maven/bin/mvn -B -Duser.home=/tmp/build_3k0p14ghrmdzs -Dmaven.repo.local=/app/tmp/repo.git/.cache/.m2/repository -s /app/tmp/repo.git/.cache/.m2/settings.xml -DskipTests=true clean install
204200
[INFO] Scanning for projects...
205-
[INFO]
201+
[INFO]
206202
[INFO] ------------------------------------------------------------------------
207203
[INFO] Building helloworld 1.0-SNAPSHOT
208204
[INFO] ------------------------------------------------------------------------
@@ -224,9 +220,9 @@ Now, let's check the state of the app's processes:
224220

225221
:::term
226222
$ heroku ps
227-
Process State Command
228-
------- ---------- ------------------------------------
229-
web.1 up for 10s java -cp target/classes:target/dep..
223+
Process State Command
224+
------- ---------- ------------------------------------
225+
web.1 up for 10s java -cp target/classes:target/dep..
230226

231227
The web process is up. Review the logs for more information:
232228

0 commit comments

Comments
 (0)