Skip to content

Commit

Permalink
Update specify-launch-process docs (#762)
Browse files Browse the repository at this point in the history
Remove mention of `pack` always treating `web` as the default process type

Signed-off-by: Rune Soerensen <[email protected]>
  • Loading branch information
AidanDelaney committed Aug 28, 2024
1 parent 66c038d commit 8e29516
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -931,14 +931,14 @@ <h3 id="build-a-multi-process-app">Build a multi-process app</h3>

Buildpacks:
ID VERSION HOMEPAGE
samples/java-maven 0.0.1 https://github.com/buildpacks/samples/tree/main/buildpacks/java-maven
samples/java-maven 0.0.2 https://github.com/buildpacks/samples/tree/main/buildpacks/java-maven
samples/hello-processes 0.0.1 https://github.com/buildpacks/samples/tree/main/buildpacks/hello-process

Processes:
TYPE SHELL COMMAND ARGS
web (default) bash java -jar target/sample-0.0.1-SNAPSHOT.jar
sys-info bash /layers/samples_hello-processes/sys-info/sys-info.sh
</code></pre><p>Notice that the default process type is <code>web</code>. This is because <code>pack</code> will always attempt to set the default process type to <code>web</code> unless the <code>--default-process</code> flag is passed.
</code></pre><p>Notice that the <code>java-maven</code> buildpack defined <code>web</code> as the default process type.
If we had run the <code>pack build</code> command above with <code>--default-process sys-info</code>, <code>sys-info</code> would be the default process for the app image!</p>
<h3 id="run-a-multi-process-app">Run a multi-process app</h3>
<p>Buildpacks are designed to give you much flexibility in how you run your app. The lifecycle includes a binary called the <code>launcher</code> which is present in the final app image and is responsible for starting your app.
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">

<head>
<meta name="generator" content="Hugo 0.133.0">
<meta name="generator" content="Hugo 0.133.1">



Expand Down

0 comments on commit 8e29516

Please sign in to comment.