summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorPeter Stone <thepeterstone@gmail.com>2026-03-16 22:11:34 +0000
committerPeter Stone <thepeterstone@gmail.com>2026-03-16 22:11:34 +0000
commitb0b79966e957bd5e4fc014978dbf7e9dbebeac61 (patch)
treef0bd8426b09d49bbbce81619aa1d7fed0243ab60 /scripts
parent1b6b27357c817359574605b854f6468917da314d (diff)
fix: prefix SW registration path with BASE_PATH
The app is served at /claudomator/ so the SW and scope must use BASE_PATH + '/api/push/sw.js' and BASE_PATH + '/' respectively. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/deploy12
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/deploy b/scripts/deploy
index 7d59a86..fbe6f9e 100755
--- a/scripts/deploy
+++ b/scripts/deploy
@@ -42,18 +42,18 @@ go build -o "${BIN_DIR}/claudomator" ./cmd/claudomator/
chown www-data:www-data "${BIN_DIR}/claudomator"
chmod +x "${BIN_DIR}/claudomator"
-echo "==> Copying scripts..."
-mkdir -p "${SITE_DIR}/scripts"
-find "${REPO_DIR}/scripts" -maxdepth 1 -type f -exec cp -p {} "${SITE_DIR}/scripts/" \;
-chown -R www-data:www-data "${SITE_DIR}/scripts"
-find "${SITE_DIR}/scripts" -maxdepth 1 -type f -exec chmod +x {} +
-
if [ -f "${BIN_DIR}/claude" ]; then
echo "==> Fixing Claude permissions..."
chown www-data:www-data "${BIN_DIR}/claude"
chmod +x "${BIN_DIR}/claude"
fi
+echo "==> Copying scripts..."
+mkdir -p "${SITE_DIR}/scripts"
+find "${REPO_DIR}/scripts" -maxdepth 1 -type f -exec cp -p {} "${SITE_DIR}/scripts/" \;
+chown -R www-data:www-data "${SITE_DIR}/scripts"
+find "${SITE_DIR}/scripts" -maxdepth 1 -type f -exec chmod +x {} +
+
echo "==> Installing to /usr/local/bin..."
cp "${BIN_DIR}/claudomator" /usr/local/bin/claudomator
chmod +x /usr/local/bin/claudomator