tidy
Update run.js
This commit is contained in:
parent
5bd97067c3
commit
e78ba70271
3 changed files with 3 additions and 4 deletions
|
@ -88,7 +88,7 @@ Deployment of the source of truth can be done with Docker Compose:
|
||||||
container_name: backend
|
container_name: backend
|
||||||
build:
|
build:
|
||||||
# this uses loopback to hit the self-hosted git server
|
# this uses loopback to hit the self-hosted git server
|
||||||
context: http://localhost:3000/clo/sitegen.git
|
context: http://127.0.0.1:3000/clo/sitegen.git
|
||||||
dockerfile: src/source-of-truth.dockerfile
|
dockerfile: src/source-of-truth.dockerfile
|
||||||
environment:
|
environment:
|
||||||
# configuration
|
# configuration
|
||||||
|
@ -105,7 +105,7 @@ Deployment of the source of truth can be done with Docker Compose:
|
||||||
- /mnt/storage1/clover/Published:/published
|
- /mnt/storage1/clover/Published:/published
|
||||||
|
|
||||||
Due to caching, one may need to manually purge images via
|
Due to caching, one may need to manually purge images via
|
||||||
`docker image rm ix-paperclover-backend -f` when an update is desired
|
`docker image rm ix-clover-backend -f` when an update is desired
|
||||||
|
|
||||||
TODO: deployment instructions for a web node
|
TODO: deployment instructions for a web node
|
||||||
|
|
||||||
|
|
2
run.js
2
run.js
|
@ -13,7 +13,7 @@ if (!zlib.zstdCompress) {
|
||||||
: null;
|
: null;
|
||||||
|
|
||||||
globalThis.console.error(
|
globalThis.console.error(
|
||||||
`sitegen depends on a node.js-compatibile runtime\n` +
|
`sitegen depends on a node.js v24. your runtime is missing feature\n` +
|
||||||
`this is node.js version ${process.version}${
|
`this is node.js version ${process.version}${
|
||||||
brand ? ` (${brand})` : ""
|
brand ? ` (${brand})` : ""
|
||||||
}\n\n` +
|
}\n\n` +
|
||||||
|
|
|
@ -60,7 +60,6 @@ app.get("/file/*", async (c) => {
|
||||||
? path.join(derivedFileRoot, file.hash, derivedAsset)
|
? path.join(derivedFileRoot, file.hash, derivedAsset)
|
||||||
: path.join(rawFileRoot, file.path);
|
: path.join(rawFileRoot, file.path);
|
||||||
let handle: { fd: number; refs: number } | null = null;
|
let handle: { fd: number; refs: number } | null = null;
|
||||||
console.log("start", fullPath);
|
|
||||||
try {
|
try {
|
||||||
handle = await fds.get(fullPath) ?? null;
|
handle = await fds.get(fullPath) ?? null;
|
||||||
if (!handle) {
|
if (!handle) {
|
||||||
|
|
Loading…
Reference in a new issue