From a6e1a8a307a65107779710dd44316718307746ad Mon Sep 17 00:00:00 2001 From: michael Date: Tue, 9 Dec 2025 11:43:03 -0600 Subject: [PATCH] Add backend directory creation to deploy script MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Creates uploads/ and temp/ directories with correct ownership before restarting the service, fixing systemd namespace errors. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- deploy.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/deploy.sh b/deploy.sh index a650b695..003f1b67 100755 --- a/deploy.sh +++ b/deploy.sh @@ -50,9 +50,16 @@ rm -rf "$FRONTEND_DEST"/* echo "Copying new build..." cp -r dist/* "$FRONTEND_DEST/" -# Step 6: Restart backend service +# Step 6: Create backend directories echo "" -echo "[6/6] Restarting backend service..." +echo "[6/7] Creating backend directories..." +mkdir -p "$DEPLOY_DIR/backend/uploads" +mkdir -p "$DEPLOY_DIR/backend/temp" +sudo chown -R www-data:www-data "$DEPLOY_DIR/backend/uploads" "$DEPLOY_DIR/backend/temp" + +# Step 7: Restart backend service +echo "" +echo "[7/7] Restarting backend service..." sudo systemctl restart semblance.service echo ""