From 48c2eabe971e6ad571c1ff1dc93cc7684c99b900 Mon Sep 17 00:00:00 2001 From: siujamo Date: Wed, 20 May 2026 01:19:40 -0500 Subject: [PATCH] fix: set correct ownership and permissions on deployed files After rsync, chown to caddy:caddy and chmod 755 on the deploy path so the web server can serve the files properly. --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4e23e28..76cdef0 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -33,5 +33,6 @@ deploy: - ssh-keyscan -H onixbyte.cn >> ~/.ssh/known_hosts script: - rsync -avz --delete doc_build/ ${SSH_USER}@onixbyte.cn:${DEPLOY_PATH} + - ssh ${SSH_USER}@onixbyte.cn "chown -R caddy:caddy ${DEPLOY_PATH} && chmod -R 755 ${DEPLOY_PATH}" rules: - if: $CI_COMMIT_BRANCH == "main"