remove db_conf_path configuration

This commit is contained in:
Daniel Seifert 2024-11-01 09:59:25 +01:00
parent bbc379b70b
commit d98a79efce
2 changed files with 6 additions and 0 deletions

View File

@ -2,6 +2,10 @@
namespace Deployer; namespace Deployer;
set('db_conf_path', function () {
return '{{deploy_path}}/database/.my.cnf';
});
set('database_configured', function() { set('database_configured', function() {
return has('db_name') && strlen(get('db_name')) && return has('db_name') && strlen(get('db_name')) &&
has('db_conf_path') && strlen(get('db_conf_path')) && test("[ -f {{db_conf_path}} ]"); has('db_conf_path') && strlen(get('db_conf_path')) && test("[ -f {{db_conf_path}} ]");

View File

@ -2,6 +2,8 @@
namespace Deployer; namespace Deployer;
require_once 'inc/database.php';
desc('create database coniguration file'); desc('create database coniguration file');
task('setup:createDbConfig', function () { task('setup:createDbConfig', function () {
try { try {