Cloud Foundry
01 / 02

cf push, Buildpacks & the Deployment Lifecycle

cf push, Buildpacks & the Deployment Lifecycle

PaaS: A Higher Abstraction Than IaaS

Cloud Foundry is an open-source Platform-as-a-Service — deployment, scaling, and lifecycle management automated so developers focus on application code, not infrastructure. Where IaaS (raw VMs) only provides compute/network/storage and leaves OS/runtime management to the user, PaaS handles the runtime environment and application lifecycle on top of that infrastructure.

cf push — The Signature Simplicity

cf push my-app
# platform detects the language/framework, builds it, and starts running it

A single command takes application source (or a pre-built artifact) from local code to a running, accessible application — the platform handles detection, building, and deployment automatically.

Buildpacks, Staging & Droplets

A buildpack detects an app's language/framework and prepares it to run — installing the right runtime, dependencies, and startup config — without the developer manually building a container image. Staging combines source code with the buildpack to produce a droplet, the final runnable artifact, which Cloud Foundry then runs as one or more application instances — staging and running are conceptually distinct phases, even though cf push handles both automatically.

Instances, Scaling & Self-Healing

A developer scales horizontally by specifying the target number of identical running instances (cf scale); Cloud Foundry distributes and manages them across the underlying infrastructure, and automatically detects and restarts a crashed instance to maintain that target count without manual intervention.

Keep your own version of these notes — editable, searchable, and organised by your stack.

Start free