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.
This commit is contained in:
@@ -33,5 +33,6 @@ deploy:
|
|||||||
- ssh-keyscan -H onixbyte.cn >> ~/.ssh/known_hosts
|
- ssh-keyscan -H onixbyte.cn >> ~/.ssh/known_hosts
|
||||||
script:
|
script:
|
||||||
- rsync -avz --delete doc_build/ ${SSH_USER}@onixbyte.cn:${DEPLOY_PATH}
|
- 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:
|
rules:
|
||||||
- if: $CI_COMMIT_BRANCH == "main"
|
- if: $CI_COMMIT_BRANCH == "main"
|
||||||
|
|||||||
Reference in New Issue
Block a user