Giter Site home page Giter Site logo

Comments (5)

PascalBrouwers avatar PascalBrouwers commented on June 2, 2024

They gave you a patched version of the Mageplaza module didn't they?
If you have it in app/code instead of a composer module the deployment will work just fine.
If that staging environment has allot of visitors and is using Redis caching you might have run into the same problem as me: #151

from capistrano-magento2.

yattargor avatar yattargor commented on June 2, 2024

Thank you for your response, probably this is the problem infact I use redis on my staging server.
I'm not very skilled in capistrano-magento2, so I put your code:

`
Rake::Task["magento:maintenance:enable"].clear

namespace :magento do
namespace :maintenance do
task :enable do
on release_roles :all do
within release_path do
execute :magento, 'cache:flush'
execute :magento, 'maintenance:enable'
execute :magento, 'cache:flush'
end
end
end
end
end
`

in "deploy.rake" file in lib/task in magento capistrano folder, so maybe this override normal deploy but the end is the same...

01 php -f bin/magento -- setup:di:compile --no-ansi 01 Compilation was started. 01 %message% 0/7 [>---------------------------] 0% < 1 sec 72.5 MiB%message% 0/7 [>------------------------… 01 Proxies code generation... 0/7 [>------------------------] 0% < 1 sec 72.5 MiB 01 01 Proxies code generation... 1/7 [===>---------------------] 14% 1 sec 78.5 MiB 01 01 Repositories code generation... 1/7 [===>------------------] 14% 1 sec 78.5 MiB 01 01 Repositories code generation... 2/7 [=====>-------------] 28% 13 secs 237.0 MiB 01 01 Service data attributes generation... 2/7 [===>---------] 28% 13 secs 237.0 MiB 01 01 Service data attributes generation... 3/7 [=====>-------] 42% 13 secs 239.0 MiB 01 01 Application code generator... 3/7 [=====>-------] 42% 13 secs 239.0 MiB 01 01 Application code generator... 4/7 [=======>-----] 57% 28 secs 263.0 MiB 01 01 Interceptors generation... 4/7 [=======>-----] 57% 28 secs 263.0 MiB 01 01 In Generator.php line 139: 01 01 Class Magento\Newsletter\Model\SubscriptionManagerInterface does not exist 01 Class Mageplaza\BetterMaintenance\Plugin\Controller\Subscriber\NewAction\In 01 terceptor generation error: The requested class did not generate properly, 01 because the 'generated' directory permission is read-only. If --- after run 01 ning the 'bin/magento setup:di:compile' CLI command when the 'generated' di 01 rectory permission is set to write --- the requested class did not generate 01 properly, then you must add the generated class object to the signature of 01 the related construct method, only.

Excuse for this, but you are the man and probably your solution is correct, but i have to understand it!

Thank you in advance for your answer

from capistrano-magento2.

PascalBrouwers avatar PascalBrouwers commented on June 2, 2024

See, my latest response in that thread. I'm not using the override of "magento:maintenance:enable" anymore.

from capistrano-magento2.

yattargor avatar yattargor commented on June 2, 2024

OK, I used your final response in that thread like you say. But probably for my incompetence I din't manage to fix problem.
I used your code in deploy.rake file and try to execute during deploy but probably I am not on the right way.

Strange... in the past I have various problems with capistrano-magento2 but after some headache I resolve that, if you have some further advice for me your are the best!

Thank you

from capistrano-magento2.

yattargor avatar yattargor commented on June 2, 2024

Seems that problem is plugin that I have installed, because in their forum, others people have my problem.

Thank you Pascal for your answer

from capistrano-magento2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.