This is a template for a web application that uses embedded Jetty. The sample code consists of a JSP (this page) and a simple servlet. Take a look around and then use Eclipse or the Command Line to deploy some changes.
Window Preferences General Network Connections SSH2Key Management tabGenerate RSA Key...
Save Private Key..., accepting the defaultsOkFile Import... Git Projects from Git
URI and click Nextgit@heroku.com:.git in the URI field.
Next three times
Click Yes to the question of authenticity if the question appears.
Import as general project
FinishConfigure Convert to Maven Project HelloServlet.java
out.write("Deployed first change!".getBytes());
Team CommitCommit
Team Push to Upstream
You've just cloned, modified, and deployed a brand new app.
See your changesLearn more at the Heroku Dev Center
heroku login
Be sure to create, or associate an SSH key with your account.
$ heroku login Enter your Heroku credentials. Email: naaman@heroku.com Password: Could not find an existing public key. Would you like to generate one? [Yn] Y Generating new SSH public key. Uploading SSH public key /Users/Administrator/.ssh/id_rsa.pub Authentication successful.
git clone -o heroku git@heroku.com:.git
src/main/java/com/example/HelloServlet.java with your favorite editor
out.write("Deployed first change!".getBytes());
mvn clean package
git commit -am "New changes to deploy"git push heroku masterYou've just cloned, modified, and deployed a brand new app.
See your changesLearn more at the Heroku Dev Center