improve deploy-local
This commit is contained in:
1 parent
1afbc9684b
commit
df73a595f8
1 file changed
+20
-4
+20
-4
@@ -1,6 +1,22 @@
|
||||
#!/usr/bin/env bash
|
||||
# deploy-local.sh
|
||||
DEST="$HOME/.local/share/mcp-servers/syncthing-mcp"
|
||||
set -euo pipefail
|
||||
|
||||
SERVER_NAME="syncthing-mcp"
|
||||
DEST="$HOME/.local/share/mcp-servers/$SERVER_NAME"
|
||||
|
||||
# Clean deploy — wipe previous, copy fresh
|
||||
mkdir -p "$DEST"
|
||||
rsync -a --delete --exclude '.git' --exclude '.venv' --exclude '__pycache__' . "$DEST/"
|
||||
cd "$DEST" && uv sync --quiet
|
||||
rsync -a --delete \
|
||||
--exclude '.git' \
|
||||
--exclude '.venv' \
|
||||
--exclude '__pycache__' \
|
||||
--exclude '*.pyc' \
|
||||
--exclude '.DS_Store' \
|
||||
. "$DEST/"
|
||||
|
||||
# Install/update deps in the runtime location
|
||||
cd "$DEST"
|
||||
uv sync --quiet
|
||||
|
||||
echo "✅ Deployed $SERVER_NAME to $DEST"
|
||||
echo " Restart Claude Desktop to pick up changes."
|
||||
Reference in new issue
Block a user