Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

kissaten/jhipster-example

Repository files navigation

JHipster Example on Heroku

This is an example of a JHipster app that is ready to run on Heroku.

To deploy, do the following:

$ git clone
$ heroku create
$ heroku buildpacks:add https://github.com/heroku/heroku-buildpack-nodejs
$ heroku buildpacks:add https://github.com/heroku/heroku-buildpack-java
$ heroku config:set MAVEN_CUSTOM_OPTS="-Pprod -DskipTests=true"
$ git push heroku master

This application differs only slightly from the standard JHipster template. Here's a summary of those changes:

src/main/resources/config/application-prod.yml

spring:
  profiles:
    active: prod
    datasource:
      dataSourceClassName: org.postgresql.ds.PGSimpleDataSource
      cachePrepStmts: true
      prepStmtCacheSize: 250
      prepStmtCacheSqlLimit: 2048
      useServerPrepStmts: true
      jpa:
        database-platform: org.hibernate.dialect.PostgreSQL82Dialect
        database: POSTGRESQL

HerokuDatabaseConfiguration.java

The file src/main/java/<your-package>/config/HerokuDatabaseConfiguration.java is boilerplate. Just copy it into your app.

pom.xml

<dependency>
  <groupId>org.postgresql</groupId>
  <artifactId>postgresql</artifactId>
  <version>${postgresql.version}</version>
</dependency>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published