Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Spring boot example project

NotificationsYou must be signed in to change notification settings

donhenton/spring-boot-birt

Repository files navigation

Application using Spring Boot to expose a rest service for the BIRTdatabase. This application is deployed to aws athttp://birt.awsdhenton.com

Netbeans Specific

If built from the plugin a specific run time associate will be built see thenbactions.xml file. Select all the checkboxes when using the wizard.

Building the App

This command builds the app and creates the react javascript app This is whatwould be used to create the jar for heroku deploying

mvn clean package -DskipTests -Preact

Running Locally

mvn clean spring-boot:run -DskipTests=true

see also the debugit.sh file

Launching and Overriding properties

java  -Dspring.profiles.active=prod -Dserver.port=7777 -jar target/spring-boot-birt-0.0-SNAPSHOT.jar

Note that the order of the parameters is importantOn heroku this command will be in the Procfile and the port number will be $PORT

In dev, DATABASE_URL in netbeans is set in the application-dev properites file,and on heroku, its set as a system property by Heroku

With the advent of npm gulp build. runit.sh will run the dev and allow forreloading of the app via live reload

Deploying to Heroku

For this app you must use the Heroku fat jar deploy.

heroku deploy:jar target/spring-boot-birt-0.0.1-SNAPSHOT.jar --app donhenton-spring-boot

Or you can use the maven deploy:

  • login onto heroku via the command line
  • answer prompt on browser (requires upgrade to CLI > 22)
  • mvn clean heroku:deploy -Preact -DskipTests

seehttps://devcenter.heroku.com/articles/deploying-executable-jar-files

Database loading

Database instructionscan be found athttps://github.com/donhenton/dbscripts/blob/master/loading_to_heroku.md. For aws you can usethe procedure here:https://github.com/donhenton/postgres-sandbox/tree/master/jdatabase_backup

Webjar project

seehttps://github.com/donhenton/webjar-app

Application Location (Locally)

http://localhost:9000

AWS Notes

Docker Compose File

version:'3.1'services:boot:container_name:bootports:            -"9000:9000"image:235926060045.dkr.ecr.us-east-2.amazonaws.com/spring-boot-birt:latestenvironment:            -DATABASE_URL=postgres://user:password@databaseDNS:5432/jdatabase            -spring.profiles.active=aws

Unlike heroku the props files are in charge of specifying the port

About

Spring boot example project

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp