Hello,
I am unsure if what I’ve encountered is a bug or an intentional design feature. While following the guide provided to clean up the database, I noticed that the cleanup script issues a warning:
# docker exec seatable-server /opt/seatable/scripts/seatable.sh python-env /opt/seatable/seatable-server-latest/dtable-web/manage.py clean_db_records
2024-03-20 08:27:05 [INFO] xmlschema[1234] - Resource 'XMLSchema.xsd' is already loaded
System check identified some issues:
WARNINGS:
?: (staticfiles.W004) The directory '/opt/seatable/seatable-server-4.3.10/dtable-web/seahub/../frontend/build' in the STATICFILES_DIRS setting does not exist.
[2024-03-20 08:27:06.102328] Start clean database records.
[2024-03-20 08:27:06.107887] Successful clean database records.
[2024-03-20 08:27:06.112017] Finish clean database records.
Despite the warning, the system seems to work as expected. I felt compelled to report this because of the specific wording of the warning.
Source from inside the docker image?
# /opt/seatable/seatable-server-4.3.10/dtable-web/seahub/settings.py
STATICFILES_DIRS = (
# Put strings here, like "/home/html/static" or "C:/www/django/static".
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
'%s/static' % PROJECT_ROOT,
'%s/frontend/build' % PROJECT_ROOT,
)
root@8df4b3cd36e2:/opt# ll /opt/seatable/seatable-server-4.3.10/dtable-web/seahub/../frontend/
total 980
drwxr-xr-x 4 root root 4096 Feb 20 04:54 ./
drwxr-xr-x 1 root root 4096 Dec 5 09:25 ../
-rw-r--r-- 1 root root 204 Jul 12 2023 .babelrc
drwxr-xr-x 4 root root 4096 Dec 5 09:25 config/
-rw-r--r-- 1 root root 118 Dec 5 09:25 .env
-rw-r--r-- 1 root root 1037 Dec 5 09:25 .eslintrc.json
-rw-r--r-- 1 root root 5503 Feb 20 04:46 package.json
-rw-r--r-- 1 root root 935272 Feb 20 04:46 package-lock.json
-rw-r--r-- 1 root root 2891 Mar 19 2021 README.md
drwxr-xr-x 2 root root 4096 Dec 5 09:25 scripts/
-rw-r--r-- 1 root root 20468 Feb 20 04:46 webpack-stats.pro.json