This is a template for a web application that uses Spring MVC and Hibernate. The sample code is a simple CRUD page
that manipulates records for a single model object. To try it out go to the people page
use Eclipse or the Command Line to deploy some changes.
Step 1. Setup your environment
- Install the Heroku Toolbelt.
- Install Maven.
Step 2. Login to Heroku
Be sure to create, or associate an SSH key with your account.
$ heroku login
Enter your Heroku credentials.
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
Step 3. Clone the App
git clone -o heroku firstname.lastname@example.org:.git
Step 4. Makes some changes to the app
src/main/java/com/example/PersonServiceImpl.java in your favorite editor
- Query the people in alphabetical order by replacing line 29 with the following two lines:
Root<Person> from = c.from(Person.class);
Step 5. Make sure the app still compiles
mvn clean package
Step 6. Deploy your changes
git commit -am "New changes to deploy"
git push heroku master