From b0b79966e957bd5e4fc014978dbf7e9dbebeac61 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Mon, 16 Mar 2026 22:11:34 +0000 Subject: 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 --- scripts/deploy | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'scripts/deploy') 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 -- cgit v1.2.3