Wisp

Type to search every docs page and heading.

Host on Cloud Run

Cloud Run runs a container image. Wisp builds the Dockerfile as it is.

Build

wisp build --docker          # Dockerfile and .dockerignore (--force replaces them)

Deploy

gcloud run deploy --source .

The image listens on $PORT (the Dockerfile sets HOST=0.0.0.0 and PORT=3000).

Environment

  • WISP_SECRET: 32 or more random characters, set as an environment variable or secret of the service, for an app that signs cookies.
  • Other variables: Environment variables.

Limits

  • The image is the Docker one: epoll instead of io_uring under Docker's default profile.
  • WebSockets and streaming work in the binary. Any limit the platform puts on them is Cloud Run's, not Wisp's.

Files and Data

  • static/ and the styles are inside the binary.
  • Saved tables live in /data inside the container, which does not outlive the instance unless you give it storage there. Otherwise use a custom store (Where rows are kept).

More

Host with Docker, Deploying.

Is This Page Useful?

Edit This Page