How Does Heroku Deployment Work? Buildpacks, Releases, and Dynos
Follow Heroku’s build, release, and runtime flow, including process scaling and limits of Dyno-local storage.
Heroku turns application code into a build artifact, combines it with configuration and add-ons in a Release, and runs that Release on Dynos. This model explains where deployment, settings, HTTP traffic, background work, and persistent data fit. This article reflects official Heroku documentation checked on 18 November 2026; details vary by platform generation and Dyno type.
Key terms
A **Buildpack** examines source and dependencies, prepares the language runtime, and builds the app.
A **build artifact** is the executable output. Classic Buildpacks produce a slug; Cloud Native Buildpacks (CNBs) produce an OCI container image.
A **Procfile** names process types and commands. For example, web handles HTTP requests; worker or queue can run background jobs.
A **Dyno** is an isolated virtualized Unix container that runs a command with the build artifact.
**Config vars** are app settings stored outside source code and exposed to the running app as environment variables.
A **Release** combines the build artifact, config vars, and attached add-ons into a version.
These are connected: a code change can create a new artifact, a configuration change can create a new Release, and each Dyno runs from that Release. How Heroku Works
From code to a running app
Git is Heroku’s primary deployment method: push a repository change to the Git remote associated with the app. Other methods, including APIs, are also available. Heroku then builds the source, installs dependencies, and may compile code or generate assets. Buildpack detection can fail if required files are missing or the language is outside supported buildpacks. Buildpacks
The output depends on platform generation. Cedar apps use classic Buildpacks by default and can also be configured for CNBs; Fir apps use CNBs. A classic build produces a slug, while CNBs produce OCI-based artifacts. So it is inaccurate to say every Heroku app always produces a slug.
The built app needs commands to run. A framework may supply defaults; a Procfile makes multiple process types explicit. For example, declare a web server as web and a queue consumer as worker. Heroku can run them on separate Dynos and scale their counts independently.
What Releases and Dynos do
Config vars hold values such as credentials, database addresses, and environment-specific settings. Keeping them out of source control lets development, staging, and production use different settings without editing code. Setting or changing a config var restarts the app and creates a new Release, so a configuration change can affect the running service. Config Vars
A Release binds the build artifact, config vars, and add-ons. Heroku retains release history and supports rolling back to an earlier release. Think of rollback as activating a new Release based on an earlier artifact and configuration, not simply reverting files. If a database migration changed external state, an app rollback does not automatically restore that data.
Dynos execute commands from the Procfile. Web Dynos receive traffic through Heroku’s HTTP routers; other process types can handle queues or other background work. Scaling web and worker Dynos separately lets you adjust request capacity and background throughput independently. How Heroku Works
Hypothetical example: separate web requests and email jobs
Suppose an online store saves an order and sends its confirmation email in the background. The web process handles the HTTP request and writes order data to a database. The worker process reads an email job from a queue and sends it. Email delivery does not have to hold the web response open, and the team can scale web and worker Dynos separately.
Do not keep job state only in a Dyno’s local files. Each Dyno has its own ephemeral filesystem; files are not shared with other Dynos and disappear when a Dyno stops or restarts. Use a shared external resource such as a database or queue. Dyno Isolation
Practical checks
**Check build inputs.** Confirm the language dependency file and required source files are in the repository. If auto-detection fails, inspect build output and configuration.
**Check the start command.** Confirm the Procfile or framework default matches how the app starts. A web app needs the expected web process type to receive HTTP traffic.
**Keep settings out of code.** Use config vars for credentials. Remember that changing them can restart the app and create a Release.
**Keep persistent data outside Dynos.** Use a database, queue, object storage, or another suitable shared service for uploads and state that must survive deployment.
**Inspect the process formation.** Use the Heroku process listing command to see running Dyno types, then determine whether web requests or background work needs scaling.
Apps using Eco Dynos can sleep after 30 minutes of inactivity and may take a few seconds to wake on the next HTTP request. This does not describe all Dyno types; check the selected type and current product information. Shared-compute Dyno types can experience performance variation based on load. Dyno Isolation
Common misunderstandings
**“Files saved on a Dyno are app data.”** The filesystem is temporary and not shared; don’t use it for persistent data.
**“Changing configuration is separate from deployment.”** A config var change can create a Release and restart the app.
**“Adding Dynos fixes every bottleneck.”** Identify whether web or worker processes are constrained; the database, queue, or an external API may be the bottleneck.
**“Every Heroku app has the same build artifact.”** Slugs and OCI-based artifacts differ by Buildpack and platform generation.
The useful mental model is not just “push code”: it is build → Release configuration → Dyno execution → HTTP routing and independent scaling. Knowing where settings and data live helps separate build failures, lost temporary files, and overloaded web processes.