Comments (5)
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.
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.
See, my latest response in that thread. I'm not using the override of "magento:maintenance:enable" anymore.
from capistrano-magento2.
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.
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)
- Version dependencies for capistrano HOT 5
- Do not run show pending updates when capistrano is outside magento git repo HOT 1
- var/reports HOT 2
- Can't install 'capistrano/magento2/cachetool' HOT 2
- [enhancement] Deploy on multiple fronts without recompiling everything on each machine HOT 2
- Catalog product images in production mode delete after deploy HOT 1
- Cached data from current release causes new release to fail with redis caching HOT 6
- Change default path of Composer HOT 2
- Magento still has issues with /pub in sitemap HOT 1
- Change deployment order of DI compile and schema upgrade HOT 2
- Doesn't work with PHP 7.4 and Magento 2..42 HOT 4
- When execute command cap staging deploy
- Issue: Cached metadata/generated files HOT 7
- How to handle initial setup:install HOT 1
- How can I flush cache file on multi server HOT 1
- touch: cannot touch '/var/www/html/releases/20220809134142/pub/static/deployed_version.txt' No such file or directory HOT 1
- Suggestion: Add arbitrary composer_flags or option to run composer with --no-plugins HOT 1
- Capistrano version
- Support for Quality Patches Tool
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from capistrano-magento2.