Skip to content
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

On-the-fly asset generation is broken #281

Open
TonyBogdanov opened this issue May 2, 2024 · 4 comments
Open

On-the-fly asset generation is broken #281

TonyBogdanov opened this issue May 2, 2024 · 4 comments

Comments

@TonyBogdanov
Copy link

When running the docker image of mautic5, the asset generation of media files fails for a lot of JS files and outputs their paths instead of their contents.

This issue was originally posted here: mautic/mautic#13076, but I think this is the proper place for it.

The cause is this:

find /opt/mautic/node_modules -mindepth 1 -maxdepth 1 -not \( -name 'jquery' -or -name 'vimeo-froogaloop2' \) | xargs rm -rf

All NPM packages are forcefully removed (apart from jquery and vimeo-froogaloop2) for some reason, but that breaks the on-the-fly generation of media/js/libraries.js for example.

@RCheesley
Copy link
Member

Thanks for flagging up the issue @TonyBogdanov - will share it in the Docker channel on Slack and hopefully someone can jump in and take a look!

@miguelurtado
Copy link

I have same problem using version image 5.1.0 from Docker Hub.

image

@escopecz
Copy link
Member

@mollux was there a reason for this line?:
https://github.com/mautic/docker-mautic/blob/mautic5/fpm/Dockerfile#L62
It seems like it's causing a bunch of issues.

@tathougies
Copy link

Removing that line fixes the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants