fix(teable): rm -rf static dir before symlinking

The build creates /opt/teable/static/ as a real directory.
ln -sf on an existing directory creates the symlink INSIDE it
instead of replacing it. Must rm -rf first.
This commit is contained in:
CanbiZ (MickLesk)
2026-03-25 15:36:35 +01:00
parent 20c6c3e74f
commit 1e9311e67f

View File

@@ -61,6 +61,7 @@ BACKEND_CACHE_SQLITE_URI=sqlite:///opt/teable/.assets/.cache.db
NEXTJS_DIR=apps/nextjs-app
EOF
ln -sf /opt/teable /app
rm -rf /opt/teable/static
if [ -d "/opt/teable/apps/nestjs-backend/static/static" ]; then
ln -sf /opt/teable/apps/nestjs-backend/static/static /opt/teable/static
else