refresh content
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user