Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to map a route in Pivotal Cloud Foundry to a landing page

I want PCF (Pivotal Cloud Foundry) route to a landing page. I have an application called app-service, it has a landing page which can be accessed by the link localhost:8080/app-service/info. How can I configure in Manifest.yml file for PCF so that simply clicking on route which is available in Pivotal Cloud Foundry AppsManager Dashboard to a landing page.
Currently after making deployment in PCF, when I click the link (which is route) in dashboard page, it say Whitelabel Error Page. So the requirement is to redirect PCF route to a landing page in Spring Boot.

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

To map routes to your app:

  1. Go to the app Overview page.
  2. In the panel on the left side of the page, under Networking, click Routes.
  3. To add a new route, click Map a Route.
  4. Enter the route and click Map.
  5. Under Choose Protocol, select either HTTP1 or HTTP2.

Based on: https://docs.vmware.com/en/VMware-Tanzu-Application-Service/3.0/tas-for-vms/manage-apps.html

If you want to map a route during deployment add following to the manifest.yml:

routes:
  - route: localhost:8080/app-service/info

Based on: https://docs.cloudfoundry.org/devguide/deploy-apps/manifest-attributes.html#routes

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading