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