-
-
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 magento2 base recipe #911
Conversation
unailopez16
commented
Nov 28, 2016
Q | A |
---|---|
Bug fix? | No |
New feature? | Yes |
BC breaks? | No |
Deprecations? | No |
Fixed tickets | #713 |
Reviewed this in #713 |
'magento:maintenance:disable' | ||
]); | ||
|
||
after('deploy:clear_paths', 'deploy:magento'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's better to have only one deploy
task in standard recipes.
set('clear_paths', ['var/generation/*', 'var/cache/*']); | ||
|
||
// Tasks | ||
desc('Enable all modules'); task('magento:enable', function () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add new line before task
.
task('magento:upgrade:db', function () { | ||
run("{{bin/php}} {{release_path}}/bin/magento setup:db-schema:upgrade"); | ||
run("{{bin/php}} {{release_path}}/bin/magento setup:db-data:upgrade"); | ||
writeln("Database upgraded"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to writeln, dep will inform user itself.
desc('Flush Magento Cache'); | ||
task('magento:cache:flush', function () { | ||
run("{{bin/php}} {{release_path}}/bin/magento cache:flush"); | ||
writeln("Magento cache flushed"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here, deployer will print:
✔︎ Executing task magento:cache:flush
Thanks for this, was looking for something like it. |