Skip to content

Latest commit

 

History

History
39 lines (33 loc) · 1.02 KB

local-build-instructions.md

File metadata and controls

39 lines (33 loc) · 1.02 KB

Source Code

Location: https://github.com/cloudfoundry-samples/spring-music

git clone https://github.com/cloudfoundry-samples/spring-music.git

Run Locally

One 1x to update Gradle version

./gradlew wrapper

To run locally with Mongo

./gradlew clean build tomcatRun -Dspring.profiles.active=mongodb -Dmongodb.url=127.0.0.1

To kill running app locally if necessary

kill $(ps aux | grep 'GradleDaemon' | awk '{print $2}')

Test Locally

curl -X GET -I --url http://localhost:8080/spring-music # headers only
curl -X GET --url http://localhost:8080/spring-music

Build and Publish to GitHub

To build and publish .zip and .war

./gradlew clean build warNoStatic warCopy zipGetVersion zipStatic \
  && sh ./deploy.sh

Helpful Links