Code Monkey home page Code Monkey logo

spring-boot-heroku-demo's Introduction

spring-boot-heroku-demo

Build Status Coverage Status 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. You can test the application here. Note that it is only running on a free dyno, so it may take some time before it responds.

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 gradle with ./gradlew bootRun. 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, the postgres application profile defined by the application-postgres.properties file can be used. You can either change the file to point to your pre existing Postgres instance or use a Docker Postgres container. To start Postgres in Docker just run ./gradlew dockerRun and it will create a Postgres container for you. After that you can start the application with postgres profile by running ./gradlew bootRun -Ppostgres

License

Code is under the Apache Licence v2.

spring-boot-heroku-demo's People

Contributors

britter avatar jkutner avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

spring-boot-heroku-demo's Issues

For the issue that Chinese character cannot be read in database

Hi , thanks for providing this nice demo to me , which make the spring boot app works in herku.

Howerver, when I type Chinese charater , it is fine to show on the page , but I can not read the record on database with cmd. It shows the err as below , do you have any good idea ?

hicherry::DATABASE=> select * from record; ERROR:
character with byte sequence 0xe4 0xb8 0xad in encoding "UTF8" has no equivalent in encoding "WIN1252"

Missing colon

There's a missing colon after the "web" in the Procfile

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.