Deploy the Sample App
Now that the Pivotal Dev virtual machine is running on your workstation, you are really close to deploying the sample Java app.
This sample app is built with Spring Framework and helps demonstrate the use of database services on Tanzu Application Service.
Download the app with git:
git clone https://github.com/cloudfoundry-samples/spring-music
If you don't have Git installed, you can download a zip file of the app at github.com/cloudfoundry-samples/spring-music/archive/master.zip
Navigate to the app directory:
Login to Pivotal Dev:
cf login -a api.local.pcfdev.io --skip-ssl-validation API endpoint: api.local.pcfdev.io Email> user Password> pass
Use Gradle to assemble the app locally:
Push the app:
cf push --hostname spring-music
Open the sample app in your browser:
requested state: started instances: 1/1 usage: 512M x 1 instances routes: spring-music.local.pcfdev.io