clearify task names
This commit is contained in:
parent
2bc766d242
commit
74f27c816b
@ -43,8 +43,8 @@ This command set `current` directory to previous deployment:
|
|||||||
|
|
||||||
## Available tasks
|
## Available tasks
|
||||||
|
|
||||||
- dep `shop:version` [stage] - show version of current OXID installation
|
- dep `shop:getVersion` [stage] - show version of current OXID installation
|
||||||
- dep `shop:migrate` [stage] - run all database migrations
|
- dep `shop:runMigration` [stage] - run all database migrations
|
||||||
- dep `setup:createDbConfig` [stage] - generate database configuration file
|
- dep `setup:createDbConfig` [stage] - generate database configuration file
|
||||||
- dep `list`- list all available commands
|
- dep `list`- list all available commands
|
||||||
|
|
||||||
|
10
deploy.php
10
deploy.php
@ -20,7 +20,7 @@ task('deploy:d3OxidTasks', [
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
desc('run all database migrations');
|
desc('run all database migrations');
|
||||||
task('shop:migrate', [
|
task('shop:runMigration', [
|
||||||
'shop:setShopsOffline',
|
'shop:setShopsOffline',
|
||||||
'shop:executeMigrations',
|
'shop:executeMigrations',
|
||||||
'shop:setShopsOnline'
|
'shop:setShopsOnline'
|
||||||
@ -39,18 +39,18 @@ task('shop:setShopsOffline', function() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
task('shop:migrate:failed', function() {
|
task('shop:runMigration:failed', function() {
|
||||||
invoke('shop:setShopsOnline');
|
invoke('shop:setShopsOnline');
|
||||||
})->hidden();
|
})->hidden();
|
||||||
|
|
||||||
fail('shop:migrate', 'shop:migrate:failed');
|
fail('shop:runMigration', 'shop:runMigration:failed');
|
||||||
|
|
||||||
desc('execute OXID Doctrine migrations');
|
desc('execute OXID Doctrine migrations');
|
||||||
task('shop:executeMigrations', function () {
|
task('shop:executeMigrations', function () {
|
||||||
if (test("[ -f {{current_path}}/vendor/bin/oe-eshop-doctrine_migration ]")) {
|
if (test("[ -f {{current_path}}/vendor/bin/oe-eshop-doctrine_migration ]")) {
|
||||||
run('{{bin/php}} {{current_path}}/vendor/bin/oe-eshop-doctrine_migration migrations:migrate');
|
run('{{bin/php}} {{current_path}}/vendor/bin/oe-eshop-doctrine_migration migrations:migrate');
|
||||||
}
|
}
|
||||||
});
|
})->hidden();;
|
||||||
|
|
||||||
desc('set shops online');
|
desc('set shops online');
|
||||||
task('shop:setShopsOnline', function() {
|
task('shop:setShopsOnline', function() {
|
||||||
@ -93,7 +93,7 @@ task('setup:createDbConfig', function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
desc('show OXID shop version');
|
desc('show OXID shop version');
|
||||||
task('shop:version', function () {
|
task('shop:getVersion', function () {
|
||||||
if (test("[ -f {{current_path}}/composer.lock ]")) {
|
if (test("[ -f {{current_path}}/composer.lock ]")) {
|
||||||
cd('{{current_path}}');
|
cd('{{current_path}}');
|
||||||
info(
|
info(
|
||||||
|
Loading…
Reference in New Issue
Block a user