restore git-tracked files before starting services
Protects against a previous failed run where services started with encrypted/missing files and overwrote them (e.g. NPM database).
This commit is contained in:
@@ -91,6 +91,9 @@ chmod +x "$REPO_DIR/scripts/"*.sh
|
|||||||
echo "==> Logging into Gitea registry..."
|
echo "==> Logging into Gitea registry..."
|
||||||
echo "Run manually: docker login git.timothykim.net"
|
echo "Run manually: docker login git.timothykim.net"
|
||||||
|
|
||||||
|
echo "==> Restoring git-tracked files..."
|
||||||
|
cd "$REPO_DIR" && git checkout -- .
|
||||||
|
|
||||||
echo "==> Starting services..."
|
echo "==> Starting services..."
|
||||||
cd "$REPO_DIR/docker/nginx" && docker compose up -d
|
cd "$REPO_DIR/docker/nginx" && docker compose up -d
|
||||||
cd "$REPO_DIR/docker/timothykim.net" && docker compose up -d
|
cd "$REPO_DIR/docker/timothykim.net" && docker compose up -d
|
||||||
|
|||||||
Reference in New Issue
Block a user