-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add another check for setup:upgrade #3658
Conversation
@peterjaap could you please take a look at this? |
@peterjaap @lamasfoker is this still required ? |
This exception is thrown also on the latest magento 2 version, so yes. |
@lamasfoker thanks for your contribution ! Can you update the doc through a new commit ? Looks like that's blocking the pull request checks |
Done |
Since this change is included, we're facing issues with modules, which are only a dev requirement in the |
@norgeindian I do not have this issue. Do you have any examples of magento modules required only on dev? Perhaps you are running composer install without |
@lamasfoker, we have a few modules, which we only use locally. As soon as we deploy, Magento sees, that this module is in the config.php, but it's not used in the code. To reproduce my issue, please include the module I mentioned above in your I already tried your |
@lamasfoker , were you able to reproduce this issue on your end the way I wrote or is it actually something else, which is related to our project setup? |
Sorry for the late replay.
We add
|
@lamasfoker , thanks for the explanation. That would of course solve it. |
Sorry, but I think your proposal is a workaround and not a solution. I am not sure about a proper solution (and so a PR to deployer), but you can add to your recipe the |
@lamasfoker, from https://experienceleague.adobe.com/en/docs/commerce-operations/configuration-guide/deployment/overview:
Hence, I think running the check @peterjaap, may I ask for your opinion here? |
@sprankhub the docu said
@norgeindian said:
In your case I think |
@sprankhub @lamasfoker the reason why we check for it is because it is possible to add a Magento extension through Composer, and then forgetting to run |
Thanks for your feedback, @peterjaap. "forgetting to run |
@sprankhub true, we have it in CI, and have it disabled in this specific recipe. But it's here for those that don't run CI but deploy from their local terminal (which I've found a lot of people who use this recipe do). We don't deploy modules in require-dev, since we run |
For production, we of course also use |
@peterjaap, could you have another look here? I truly believe this PR literally broke zero downtime deployment for many people. |
I have added another check if the
setup:upgrade
command is needed to be run.As stated on the command class
module:config:status
if it fails you have to run thesetup:upgrade
command.