Skip to main content

Pivotal Cloud Foundry Developer Certification - Cloud Foundry Overview - Starting, Restarting and Restaging applications

Do you know the difference between restarting, restaging and redeploying an application?
How does each of these affect the services, environment-variables available to an application?

Starting an app: 
1. '$ cf push YOUR-APP' command with manifest entry of command attribute i.e. command: node YOUR-APP.js
2. '$ cf push YOUR-APP -c "node YOUR_APP.js"', where -c command line option for defining the start command.

First time deployment using 'cf push' uses buildpack start command by default.

Restarting an app:
Restarting your application stops your application and restarts it with the already compiled droplet. Diego cell unpacks, compiles and runs a droplet on a container.

'cf restart YOUR-APP'

Restaging an app:
Restaging your application stops your application and re-stages it, by compiling a new droplet and starting it.

'cf restage YOUR-APP'


For more details refer start-restart-restage



Comments

Popular posts from this blog

OpenStack - Conceptual architecture showing the relationship b/w services

AWS vs Openstack comparison https://redhatstackblog.redhat.com/2015/05/13/public-vs-private-amazon-compared-to-openstack/

Pivotal Cloud Foundry Developer Certification - Managed and User-Provided Services

1. What is a service? Can you name some examples? Services are cloud native apps dependencies. Consider S ervice as a factory that delivers service instances. Two types: 1. Managed services Cloud Foundry offers a marketplace of services, from which users can provision reserved resources on-demand. Examples of resources services provide include databases on a shared or dedicated server, or accounts on a SaaS application.  Example: my-sql, rabbitmq, redis etc... 2. User provided services User provided services provides the metadata to connect to the system outside the cloud. These services are not available in market place. This are custom services i.e. connecting to your own external DB or any other service outside the cloud i.e. erp etc.. Command to list the service instances in your space: cf services To see details of particular service cf service SERVICE_INSTANCE_NAME What is the “marketplace”? Does it show all services?  The Pivotal Cloud Foundry (P

Kumaoni Song/Poem - Aaj ka dina

Aaj ka dina,  Tu holi ghar pana O yaad aali, maikani tyaar bina O yaad aali, maikani tyaar bina Ghutghutu maike, Batuli lagaye Ghutghutu maike, Batuli lagaye O yaad aali, maikani tyaar bina O yaad aali, maikani tyaar bina Aankho me aanshu, teri holi Mai pardesha, Tu ghar holi Ghutghutu maike, Batuli lagaye Ghutghutu maike, Batuli lagaye O yaad aali, maikani tyaar bina O yaad aali, maikani tyaar bina Aaj ka dina,  Tu holi ghar pana