-
-
Notifications
You must be signed in to change notification settings - Fork 251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hard coded absolute path for symbolic links in html/public/cache/ js and css files? #1220
Comments
Removing the symlinks results in the following error being displayed in the browser:
But apparently these cache files get rebuilt on a restart of the daemon / container. I suspect that the issue is with DOCUMENT_ROOT being used to determine the absolute paths for these symlinks and as this is done inside the container the See: https://yagudaev.com/posts/resolving-php-relative-path-problem/ |
The likely culprit is this: Line 95 in 1e545a6
As WIDGETS_PATH is used to construct the symlink path at the location mentioned above. |
Replacing the above line in Bootstrap.php with a relative path seems to work at first glance:
But I am probably overlooking something. Edit: Yeah that breaks it pretty horribly after logging in. |
Changing this line: to
Seems to work and not have an immediate negative effect. |
This comment was marked as off-topic.
This comment was marked as off-topic.
I made the change, still don't get why you need it in Docker, but anyway |
Thanks! This is a peculiarity with the php docker setup. From the inside of the container these files are at I think this theoretically greatly simplifies the Docker setup and I'll open an issue on the movim_docker repo for it. |
Please do |
See a6fac66 |
It seems like Movim creates symbolic links for the .js and .css files in the
/html/public/cache
folder and at least in the Docker images these appear to result in a hard coded absolute path at/var/www/html/app/...
While this works inside the docker container, this breaks when trying to serve these files from an external Nginx where these files are at a different absolute path.
It appears that the official docker compose script gets around this by including an additional Nginx that forces these files inside to the same
/var/www/html/app/...
location, but otherwise this additional Nginx seems completely redundant.I think the proper solution would be to make these symbolic links relative, something like
../../apps/...
The text was updated successfully, but these errors were encountered: