align option names
This commit is contained in:
bovenliggende
47998d32cd
commit
8f1bc31c40
12
deploy.php
12
deploy.php
@ -24,11 +24,11 @@ task('deploy:d3OxidTasks', [
|
|||||||
desc('set shops offline');
|
desc('set shops offline');
|
||||||
task('deploy:setShopsOffline', function() {
|
task('deploy:setShopsOffline', function() {
|
||||||
if (has('bin/mysql') && strlen(get('bin/mysql')) &&
|
if (has('bin/mysql') && strlen(get('bin/mysql')) &&
|
||||||
has('dbName') && strlen(get('dbName')) &&
|
has('db_name') && strlen(get('db_name')) &&
|
||||||
has('dbConfPath') && strlen(get('dbConfPath')) && test("[ -f {{dbConfPath}} ]")
|
has('db_conf_path') && strlen(get('db_conf_path')) && test("[ -f {{db_conf_path}} ]")
|
||||||
) {
|
) {
|
||||||
$query = "UPDATE oxshops SET oxactive = '0', OXREGISTERSUBJECT = CONCAT('..', OXREGISTERSUBJECT) WHERE oxactive = '1';";
|
$query = "UPDATE oxshops SET oxactive = '0', OXREGISTERSUBJECT = CONCAT('..', OXREGISTERSUBJECT) WHERE oxactive = '1';";
|
||||||
run('{{bin/mysql}} --defaults-extra-file={{dbConfPath}} {{dbName}} -e "'.$query.'"');
|
run('{{bin/mysql}} --defaults-extra-file={{db_conf_path}} {{db_name}} -e "'.$query.'"');
|
||||||
} else {
|
} else {
|
||||||
info('missing config, task skipped');
|
info('missing config, task skipped');
|
||||||
}
|
}
|
||||||
@ -37,11 +37,11 @@ task('deploy:setShopsOffline', function() {
|
|||||||
desc('set shops online');
|
desc('set shops online');
|
||||||
task('deploy:setShopsOnline', function() {
|
task('deploy:setShopsOnline', function() {
|
||||||
if (has('bin/mysql') && strlen(get('bin/mysql')) &&
|
if (has('bin/mysql') && strlen(get('bin/mysql')) &&
|
||||||
has('dbName') && strlen(get('dbName')) &&
|
has('db_name') && strlen(get('db_name')) &&
|
||||||
has('dbConfPath') && strlen(get('dbConfPath')) && test("[ -f {{dbConfPath}} ]")
|
has('db_conf_path') && strlen(get('db_conf_path')) && test("[ -f {{db_conf_path}} ]")
|
||||||
) {
|
) {
|
||||||
$query = "UPDATE oxshops SET oxactive = '1', OXREGISTERSUBJECT = SUBSTR(OXREGISTERSUBJECT, 3) WHERE oxactive = '0' AND OXREGISTERSUBJECT LIKE '..%';";
|
$query = "UPDATE oxshops SET oxactive = '1', OXREGISTERSUBJECT = SUBSTR(OXREGISTERSUBJECT, 3) WHERE oxactive = '0' AND OXREGISTERSUBJECT LIKE '..%';";
|
||||||
run('{{bin/mysql}} --defaults-extra-file={{dbConfPath}} {{dbName}} -e "'.$query.'"');
|
run('{{bin/mysql}} --defaults-extra-file={{db_conf_path}} {{db_name}} -e "'.$query.'"');
|
||||||
} else {
|
} else {
|
||||||
info('missing config, task skipped');
|
info('missing config, task skipped');
|
||||||
}
|
}
|
||||||
|
@ -8,11 +8,11 @@ config:
|
|||||||
.base: &base
|
.base: &base
|
||||||
local: true
|
local: true
|
||||||
deploy_path: /home/XXX/{{application}}_{{alias}}
|
deploy_path: /home/XXX/{{application}}_{{alias}}
|
||||||
dbConfPath: /home/phfhcwoc/dbConf/my_{{alias}}.cnf
|
db_conf_path: /home/XXX/dbConf/my_{{alias}}.cnf # optional for database actions
|
||||||
shared_files:
|
shared_files:
|
||||||
- .htaccess
|
- .htaccess
|
||||||
- .htpasswd
|
- .htpasswd
|
||||||
- .env # otherwise source/config.inc.php
|
- .env # otherwise source/config.inc.php
|
||||||
shared_dirs:
|
shared_dirs:
|
||||||
- source/sitemaps
|
- source/sitemaps
|
||||||
- source/export
|
- source/export
|
||||||
@ -28,14 +28,14 @@ hosts:
|
|||||||
production:
|
production:
|
||||||
<<: *base
|
<<: *base
|
||||||
branch: rel_7.0.x
|
branch: rel_7.0.x
|
||||||
dbName: myProdDatabase
|
db_name: myProdDatabase # optional for database actions
|
||||||
labels:
|
labels:
|
||||||
role: production # production | stage | development
|
role: production # production | stage | development
|
||||||
|
|
||||||
development:
|
development:
|
||||||
<<: *base
|
<<: *base
|
||||||
branch: dev_7.1.x
|
branch: dev_7.1.x
|
||||||
dbName: myDevDatabase
|
db_name: myDevDatabase # optional for database actions
|
||||||
keep_releases: 1
|
keep_releases: 1
|
||||||
composer_options: --verbose --prefer-dist --no-progress --no-interaction # without no-dev option
|
composer_options: --verbose --prefer-dist --no-progress --no-interaction # without no-dev option
|
||||||
labels:
|
labels:
|
||||||
|
Laden…
Verwijs in nieuw issue
Block a user