refactor: remove ttyd + zellij, update deploy for clide-web

Remove all external binary dependencies that clide-web replaces:
- ttyd-nerd-font git submodule (C binary)
- zellij config (config.kdl, bare.kdl)
- clide-launcher shell script
- update-ttyd.sh build script

Update systemd service and install script for the new FastAPI stack.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-24 17:03:53 +01:00
co-authored by Claude Opus 4.6
parent 56a8ea4ba4
commit b2a18b6b20
7 changed files with 23 additions and 698 deletions
+11 -46
View File
@@ -1,9 +1,9 @@
#!/bin/bash
# Clide Web-Access Layer Installation Script
# Clide Web Server Installation Script
# Run with: sudo bash deploy/install-clide-web.sh
set -e
echo "=== Clide Web-Access Layer Installation ==="
echo "=== Clide Web Server Installation ==="
echo ""
# Check if running as root
@@ -13,54 +13,21 @@ if [[ $EUID -ne 0 ]]; then
fi
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
SUDO_USER="${SUDO_USER:-$(logname)}"
USER_HOME=$(eval echo ~"$SUDO_USER")
PROJECT_DIR="$(dirname "$SCRIPT_DIR")"
echo "[1/6] Building ttyd (with Nerd Font support)..."
TTYD_SRC="$SCRIPT_DIR/ttyd-nerd-font"
if [[ ! -d "$TTYD_SRC/src" ]]; then
echo "Error: ttyd-nerd-font submodule not initialized."
echo "Run: git submodule update --init deploy/ttyd-nerd-font"
exit 1
fi
mkdir -p "$TTYD_SRC/build"
cd "$TTYD_SRC/build"
cmake .. -DCMAKE_BUILD_TYPE=Release >/dev/null 2>&1
make -j"$(nproc)" >/dev/null 2>&1
cp "$TTYD_SRC/build/ttyd" /usr/local/bin/ttyd
chmod +x /usr/local/bin/ttyd
cd "$SCRIPT_DIR"
ttyd --version
echo "[1/3] Installing clide-web Python package..."
cd "$PROJECT_DIR"
.venv/bin/pip install -e "./clide-web"
echo ""
echo "[2/6] Installing zellij..."
curl -L https://github.com/zellij-org/zellij/releases/latest/download/zellij-x86_64-unknown-linux-musl.tar.gz | tar -xz -C /usr/local/bin
chmod +x /usr/local/bin/zellij
zellij --version
echo ""
echo "[3/6] Installing clide-launcher..."
cp "$SCRIPT_DIR/clide-launcher" /usr/local/bin/clide-launcher
chmod +x /usr/local/bin/clide-launcher
echo ""
echo "[4/6] Installing Zellij config..."
ZELLIJ_CONFIG_DIR="$USER_HOME/.config/zellij"
ZELLIJ_LAYOUTS_DIR="$ZELLIJ_CONFIG_DIR/layouts"
mkdir -p "$ZELLIJ_LAYOUTS_DIR"
cp "$SCRIPT_DIR/zellij/config.kdl" "$ZELLIJ_CONFIG_DIR/config.kdl"
cp "$SCRIPT_DIR/zellij/bare.kdl" "$ZELLIJ_LAYOUTS_DIR/bare.kdl"
chown -R "$SUDO_USER:$SUDO_USER" "$ZELLIJ_CONFIG_DIR"
echo ""
echo "[5/6] Installing systemd service..."
echo "[2/3] Installing systemd service..."
cp "$SCRIPT_DIR/clide-web.service" /etc/systemd/system/clide-web.service
echo ""
echo "[6/6] Starting service..."
echo "[3/3] Starting service..."
systemctl daemon-reload
systemctl enable clide-web
systemctl start clide-web
systemctl restart clide-web
echo ""
echo "=== Installation Complete ==="
@@ -73,7 +40,5 @@ ss -tlnp | grep 8888 || echo "Warning: Port 8888 not listening yet"
echo ""
echo "Access:"
echo " Local: http://localhost:8888"
echo " Direct: http://localhost:8888?project=system-management"
echo " External: https://code.schweitz.net?project=system-management"
echo ""
echo "Don't forget to update NPM to enable WebSocket support for code.schweitz.net"
echo " Direct: http://localhost:8888?project=clide"
echo " External: https://code.schweitz.net?project=clide"