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

add magento2 base recipe #911

Merged
merged 1 commit into from
Jan 19, 2017
Merged

add magento2 base recipe #911

merged 1 commit into from
Jan 19, 2017

Conversation

unailopez16
Copy link
Contributor

Q A
Bug fix? No
New feature? Yes
BC breaks? No
Deprecations? No
Fixed tickets #713

@peterjaap
Copy link
Contributor

peterjaap commented Dec 23, 2016

Reviewed this in #713

'magento:maintenance:disable'
]);

after('deploy:clear_paths', 'deploy:magento');
Copy link
Member

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 () {
Copy link
Member

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");
Copy link
Member

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");
Copy link
Member

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

@suspiciousfellow
Copy link

Thanks for this, was looking for something like it.

@antonmedv antonmedv merged commit 509e0f3 into deployphp:master Jan 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants