Add backend directory creation to deploy script
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 <noreply@anthropic.com>
This commit is contained in:
parent
947acf780b
commit
a6e1a8a307
1 changed files with 9 additions and 2 deletions
11
deploy.sh
11
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 ""
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue