top of page

Deploy App in PCF(Pivotal Cloud Foundry)

  • Writer: Subhasish Sahu
    Subhasish Sahu
  • May 30, 2020
  • 1 min read

Updated: Jun 27, 2020


ree
  • Install CLI by clicking on the .exe


ree

  • Download Sample ( Spring Boot) app from GIT using GIT BASH


  • Navigate to App Directory

$ cd cf-sample-app-spring/

ree

$  cf login -a https://api.run.pivotal.io –u <pivotal login user id> -p <pivotal login password>


ree

Sometime creation of org does not happen through command line, you might get the below error:


ree

So you may use the Pivotal Site to create one as below. Signup for Free Trial and then go to Pivotal  Web Services.



ree

Claim your Free Trial and then Create a ORG


ree



ORG Created


ree

Check the ORG created under your ID


ree

Click on + Add  a Space and Space is created


ree

Create a Target using above ORG and SPACE


ree

Push Code to Cloud using command :  cf push


ree

ree

It is deployed to PCF now


ree

It is up and running and you can hit the url in any browser


ree

Miscellaneous Command :

  • Views logs in Console

Recent logs :  cf logs cf-spring –recent

Live stream :  cf logs cf-spring

  • Horizontal Scaling

    cf scale cf-spring -i 2

  • Check the status of app

cf app cf-spring


ree
  • Increase the memory limit for each app instance:

            cf scale cf-spring -m 1G

  • Increase the disk limit for each app instance:

            cf scale cf-spring -k 512M




Comments


bottom of page