refresh content
This commit is contained in:
@@ -1,12 +1,7 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
set -eu
|
|
||||||
|
|
||||||
cd "$(dirname "$0")/.."
|
## 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
|
||||||
echo "[refresh] pulling latest image"
|
docker build --build-arg PUBLIC_ENABLE_SW=true -t fast-website:local .
|
||||||
docker compose -f deploy/docker-compose.prod.yml pull
|
docker run -it -v $(pwd)/site:/usr/src/app -w /usr/src/app node:24-alpine npm run cache:clear
|
||||||
|
docker compose up -d
|
||||||
echo "[refresh] restarting service (no build)"
|
|
||||||
docker compose -f deploy/docker-compose.prod.yml up -d --no-build
|
|
||||||
|
|
||||||
echo "[refresh] done"
|
|
||||||
Reference in New Issue
Block a user