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

CM_Redis does not work with copy deploy strat? #3684

Closed
sreichel opened this issue Dec 2, 2023 · 7 comments
Closed

CM_Redis does not work with copy deploy strat? #3684

sreichel opened this issue Dec 2, 2023 · 7 comments
Labels

Comments

@sreichel
Copy link
Contributor

sreichel commented Dec 2, 2023

As soon i change

        "magento-deploystrategy": "copy",
        "magento-deploystrategy-dev": "symlink",

to "copy" or run composer install with --no-dev i get symlink errors every time.

  • deleted community
  • deleted vendor

It does nor work with copy!? @colinmollenhour can you please check this?

@sreichel sreichel added the bug label Dec 2, 2023
@colinmollenhour
Copy link
Member

May be helpful to know so please clarify, when you say CM_Redis are you referring to the cache module or the session module?

This sounds like an issue with Composer more than any given module? I don't use Composer in this capacity and have never looked at the code for the magento-related Composer plugins so not sure I am the best person to report this to.. @Flyingmana would you be more familiar with this or know who to ask about it?

@sreichel
Copy link
Contributor Author

sreichel commented Dec 4, 2023

Maybe related to undeleted symlinks?

Can you please test symlink strat and change it to copy and visa verse? (with and without cleaning vendor and symlinks)

when you say CM_Redis

have to check later

@fballiano
Copy link
Contributor

I recall that it was already discussed that if you switch between symlink and copy it doesn't work, but it's not CM_Redis fault, it should be the magento module

@sreichel
Copy link
Contributor Author

This sounds like an issue with Composer more than any given module?

It only happens to CM_Redis for me. Guess into the wild ... (or something that came accross years ago?)

modman

Cm/Cache/Backend/*                 app/code/community/Cm/Cache/Backend/

@colinmollenhour can you please test it w/o astrix *?

Cm/Cache/Backend/                  app/code/community/Cm/Cache/Backend/

@colinmollenhour
Copy link
Member

The reason for the asterisk is Backend is not supposed to be a symlink, but rather a directory because there are other backends as well like Cm_Cache_Backend_File and Cm_Cache_Backend_Mongo so the intent was to avoid conflicts.

@sreichel
Copy link
Contributor Author

as well like Cm_Cache_Backend_File

I can remember problems symlinking multiple modules to one directoy ... is it possible t to link files one by one? Or by sub-directories?

@colinmollenhour
Copy link
Member

That's what the asterisk is for, but I suppose it could be specified one file per line.

colinmollenhour/Cm_Cache_Backend_Redis@d403f44
https://github.com/colinmollenhour/Cm_Cache_Backend_Redis/releases/tag/1.17.1

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

No branches or pull requests

3 participants