Skip to content

jkutner/spring-boot-heroku-demo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring-boot-heroku-demo

License

This is a small demo application for showing how to run a Spring Boot application on Heroku. For more information have a look at the accompanying blog post.

Deploy to Heroku

Running the application

To run the application from your IDE, simply run the com.github.britter.springbootherokudemo.Application class as a Java Application. Alternatively the application can be started from the terminal using maven with mvn spring-boot:run. After starting the application, point your browser to http://localhost:8080.

Using a Postgres database for persistence

For running the application using a real Postgres database, uncomment all property definitions in the application.properties file and put the configuration for your Postgres instance there. You can also use Docker for starting a Postgres database. Just run the docker-postgres.sh script and it will create a Postgres container for you. When using docker, all you have to change in the application.properties file is spring.datasource.url. For boot2docker users, the host name should already be correct. For Linux users it has to be changed to localhost.

License

Code is under the Apache Licence v2.

About

Demo project showing how to deploy an application to Heruko

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 59.0%
  • HTML 37.7%
  • Shell 3.3%