fix: Rsync subdirs properly on prod deployment

Fixed rsync flags to correctly sync subdirectories when deploying to prod.
This commit is contained in:
Matthew Binning 2026-01-02 08:39:49 -08:00
parent 9743023e85
commit e49c53c85b
2 changed files with 17 additions and 4 deletions

View file

@ -65,7 +65,7 @@ case $ENV in
ssh ${REMOTE_HOST} "mkdir -p /tmp/${REMOTE_PATH}" ssh ${REMOTE_HOST} "mkdir -p /tmp/${REMOTE_PATH}"
rsync -avz --delete ${DEPLOY_FILES} ${REMOTE_HOST}:/tmp/${REMOTE_PATH}/ rsync -avz --delete ${DEPLOY_FILES} ${REMOTE_HOST}:/tmp/${REMOTE_PATH}/
# Set proper permissions and move config on remote server # Set proper permissions and move config on remote server
ssh ${REMOTE_HOST} "sudo rsync -avz --delete /tmp/${REMOTE_PATH} ${REMOTE_PATH} && \ ssh ${REMOTE_HOST} "sudo rsync -avz --delete /tmp/${REMOTE_PATH}/ ${REMOTE_PATH} && \
sudo chown -R nginx:nginx ${REMOTE_PATH}/ && \ sudo chown -R nginx:nginx ${REMOTE_PATH}/ && \
printf 'Content deployed.\n'" printf 'Content deployed.\n'"

View file

@ -1,8 +1,21 @@
(D) Integrate photos for recipes (A) Fix anchors (relative links) showing in mdbook's sidebar.
Create a minimal "Menu" (food menu) page on the main website, which has a selection of line items from the recipe book. @Cline
Reduce the CSS where possible. Match my website's theme to align with mdbook's theme. @Cline
Theme Forgejo where possible to match the theme. @Cline
Change deploy.sh into a Makefile with operations for build, deploy [staging|production] @Cline
Personalize the index page.
Move the resume to the private section and add the lock symbol.
Change the title of the Blog.
Personalize the introduction page of the blog.
Integrate photos for recipes
Determine which articles should be incorporated into the website
Build out the Copper Chronicle
Fill out the DefCon article Fill out the DefCon article
Fill out the Oktoberfest article Fill out the Oktoberfest article
health journey Fill out the health journey
faith journey Fill out the faith journey
x Create a simple webpage with HTML and CSS x Create a simple webpage with HTML and CSS
x Serve it from nginx x Serve it from nginx
x Add a navbar at the top with the index page as link in the top-left. x Add a navbar at the top with the index page as link in the top-left.