Your app is ready!

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. Then use Eclipse or the Command Line to deploy some changes.
If you already created this app from the Heroku Eclipse Plugin, proceed to Step 3. The following steps depends on the Heroku Eclipse plugin. If you do not have the Heroku Eclipse plugin installed and configured, follow a step-by-step guide on Dev Center to install the plugin and configure the plugin in Eclipse.

Step 1.Configure Heroku Eclipse preferences

  1. Open EclipsePreferences
  2. Select Heroku
  3. Enter your Email and Password
  4. Click Login. If your login was successful, your Heroku API key would be populated in the API Key field.
    setup api key
  5. In the SSH Key section, click Generate if you need to generate a new key. If you have previously generated and saved a SSH key is automatically loaded from the default location. If it is not in the default location, click Load SSH Key
  6. Click on Add to add your SSH Key to Heroku Add SSH Key to Heroku

Step 2. Importing this App

  1. Open FileImport and expand the Heroku section Import App
  2. Select Existing Heroku ApplicationNext
  3. Select and click Next Create app from template
  4. Choose Auto detected project Project Type selection
  5. Click Finish to complete the import. The plugin will use eGit and clone the source code repository to a local Git repository. Local Project and Git Repository

Step 3. Makes some changes to the app

  1. Open PersonServiceImpl.java
  2. Query the people in alphabetical order by replacing line 29 with the following two lines:
    Root<Person> from = c.from(Person.class);
    c.orderBy(em.getCriteriaBuilder().asc(from.get("lastName")));
                    

Step 4. Deploy to Heroku

  1. Right-click the project root and choose Team Commit
  2. Enter a commit message and click Commit Commit Changes
  3. Right-click the project root and choose Team Push to Upstream
  4. Review the push results. At the bottom, a "... deployed to Heroku" message will appear. Push Results

Done!

You've just cloned, modified, and deployed a brand new app.

See your changes

Learn more at the Heroku Dev Center

Step 1. Setup your environment

  1. Install the Heroku Toolbelt.
  2. Install Maven.

Step 2. Login to Heroku

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.

Step 3. Clone the App

git clone -o heroku git@heroku.com:.git

Step 4. Makes some changes to the app

  1. Open src/main/java/com/example/PersonServiceImpl.java in your favorite editor
  2. Query the people in alphabetical order by replacing line 29 with the following two lines:
    Root<Person> from = c.from(Person.class);
    c.orderBy(em.getCriteriaBuilder().asc(from.get("lastName")));
                    

Step 5. Make sure the app still compiles

mvn clean package

Step 6. Deploy your changes

  1. git commit -am "New changes to deploy"
  2. git push heroku master

Done!

You've just cloned, modified, and deployed a brand new app.

See your changes

Learn more at the Heroku Dev Center