refresh content
Some checks failed
ci / site (push) Has been cancelled
publish-image / publish (push) Has been cancelled

This commit is contained in:
2026-02-10 05:06:24 -05:00
parent 1d3d68df7b
commit e2ef436d34

View File

@@ -1,12 +1,7 @@
#!/usr/bin/env sh
set -eu
cd "$(dirname "$0")/.."
echo "[refresh] pulling latest image"
docker compose -f deploy/docker-compose.prod.yml pull
echo "[refresh] restarting service (no build)"
docker compose -f deploy/docker-compose.prod.yml up -d --no-build
echo "[refresh] done"
## Fetch content, build the image, clear the cache and restart the container
docker run -it -v $(pwd)/site:/usr/src/app -w /usr/src/app node:24-alpine npm run fetch-content
docker build --build-arg PUBLIC_ENABLE_SW=true -t fast-website:local .
docker run -it -v $(pwd)/site:/usr/src/app -w /usr/src/app node:24-alpine npm run cache:clear
docker compose up -d