Skip to content
Merged
Show file tree
Hide file tree
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
23 changes: 23 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ anyhow = "1"
builderlab-auth = { path = "crates/builderlab-auth", features = ["blocking-client"] }
clap = { version = "4.5", features = ["env"] }
clap_complete = "4.5"
flate2 = "1"
pbjson = "0.9"
pbjson-types = "0.9"
prost = "0.14"
Expand All @@ -32,6 +33,8 @@ serde = { version = "1", features = ["derive"] }
serde_json = "1"
serde_yaml = "0.9"
sha2 = "0.10"
tar = { version = "0.4", default-features = false }
tempfile = "3"
tiny_http = "0.12"
tonic = { version = "0.14", features = ["transport"] }
tonic-prost = "0.14"
Expand All @@ -43,6 +46,3 @@ zip = { version = "4", default-features = false, features = ["deflate"] }
pbjson-build = "0.9"
protoc-bin-vendored = "3"
tonic-prost-build = "0.14"

[dev-dependencies]
tempfile = "3"
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,33 @@ Use `--json` for machine-readable output and `--verbose` for request
diagnostics. Do not include credentials or other sensitive data when sharing
verbose output.

## Static sites
Comment thread
nathan-thillairajah marked this conversation as resolved.
Resolved

To publish a built static site or single-page app, create a static app once,
then deploy the build output directory:

```bash
bl apps create --app-id docs-site --runtime-profile static --json
bl apps deploy docs-site --dir dist --json
```

`--dir` takes the folder your build writes, with `index.html` at its root. The
CLI writes the static manifest, packages the files under `public/`, and uploads
the result, so no manifest or tarball is needed. It skips `.DS_Store`, `._*`
AppleDouble files, `__MACOSX/` and `.git`, plus `.env*`/`.envrc` files and
`node_modules/` so `--dir .` doesn't publish secrets or dependencies, and
refuses other symlinks. The same
directory always produces the same archive.

Unknown paths return 404. For client-side routing, pass `--spa` to serve
`index.html` for unknown paths instead. Current platform static runtimes also
serve `/about` from `about.html` and answer a 404 with the site's root
`404.html` when present.

The JSON response adds `packaged_site` with the file count, byte sizes and
skipped paths. To deploy a prebuilt `artifact.tar.gz` instead, pass its path in
place of `--dir`.

## Managed MySQL apps

When the selected Apps Platform contract and server support managed MySQL,
Expand Down
Loading
Loading