Skip to content

Directory removed in public after composer install #459

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

Closed
Jasonlgrd opened this issue Nov 4, 2021 · 2 comments
Closed

Directory removed in public after composer install #459

Jasonlgrd opened this issue Nov 4, 2021 · 2 comments

Comments

@Jasonlgrd
Copy link

Hello,

When i execute
composer install or bin/console assets:install public
The folder fmelfinder in public/bundles is automatically removed.
I'm obligatory execute bin/console elfinder:install after composer install everytime

Thank you,
Sorry for my english !

@entobvba
Copy link
Contributor

entobvba commented Dec 7, 2021

Workaround: modify your composer.json so every time elfinder is automatically installed:

  "scripts": {
    "auto-scripts": {
      "cache:clear": "symfony-cmd",
      "assets:install %PUBLIC_DIR%": "symfony-cmd",
      "elfinder:install -q": "symfony-cmd" //Runs after assets:install
    },
    "post-install-cmd": [
      "@auto-scripts"
    ],
    "post-update-cmd": [
      "@auto-scripts"
    ]
  },

@Jasonlgrd
Copy link
Author

Thanks for response !

It's functional for me, good ! 😁

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

2 participants