mirror of
https://github.com/holos-run/holos.git
synced 2026-03-02 19:18:54 +00:00
Cloudflare fails to build the website with: ``` 07:44:47.179 sh: 1: docusaurus: not found 07:44:47.192 Failed: Error while executing user command. Exited with error code: 127 ``` Resolve it by executing npm install from the build-website script and note the script is intended for use in a cloudflare context.
17 lines
312 B
Bash
Executable File
17 lines
312 B
Bash
Executable File
#! /bin/bash
|
|
#
|
|
# This script is intended for execution in a Cloudflare Pages build context.
|
|
|
|
set -euo pipefail
|
|
|
|
PARENT="$(cd "$(dirname $0)" && pwd)"
|
|
TOPLEVEL="$(cd "${PARENT}/.." && pwd)"
|
|
|
|
cd "$TOPLEVEL/doc/website"
|
|
|
|
npm install
|
|
npm run build
|
|
|
|
echo "repo: ${TOPLEVEL}" >&2
|
|
echo "build: ./doc/website/build" >&2
|