Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build command docs #38

Merged
merged 1 commit into from
Dec 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions buildpacks/static-web-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,16 @@ This command must write its output to the `static-artifacts/` directory (`/works
Any dependencies to run this build command should be installed by an earlier buildpack, such as Node & npm engines for JavaScript.

```toml
[com.heroku.release-build]
command = ["sh"]
[com.heroku.phase.release-build]
command = "sh"
args = ["-c", "npm build"]
```

If the output is sent to a different directory, for example `dist/`, it should be copied to the expected location:

```toml
[com.heroku.release-build]
command = ["sh"]
[com.heroku.phase.release-build]
command = "sh"
args = ["-c", "npm run build && mkdir -p static-artifacts && cp -rL dist/* static-artifacts/"]
```

Expand All @@ -59,7 +59,7 @@ This buildpack also supports a executing a build command during CNB Build proces

```toml
[com.heroku.static-web-server.build]
command = ["sh"]
command = "sh"
args = ["-c", "npm build"]
```

Expand Down