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

The option --use-webroot-dir is ignored when creating a Joomla site (site:create) #121

Closed
sellerie98 opened this issue May 15, 2020 · 3 comments
Milestone

Comments

@sellerie98
Copy link

Describe your environment

  • OS: Debian 10
  • Joomla version: 3.9.18
  • Joomlatools Console version: master (4a08c2c)
  • Are you working on the Joomlatools Vagrant box: no

Describe the problem:

Steps to reproduce:

  1. Build console.phar with https://github.com/clue/phar-composer using php ~/phar-composer-latest.phar build /home/<user>/git/joomlatools-console
  2. Add the joomla3.users.sql file manually using:
<?php
try {
    $a = new Phar('console.phar');
    $a->addFile('joomla3.users.sql', 'bin/.files/joomla3.users.sql');

} catch (Exception $e) {
    var_dump($e);
}
?>
  1. Run console.phar:
    ~/console.phar site:create --www ${WEB___DIR} --use-webroot-dir --skip-create-statement --mysql-host ${DB_main_HOST} --mysql-login ${DB_main_LOGIN}:${DB_main_PASSWORD} --mysql-database ${DB_main_NAME} --release=${joomla_version} ${SETTINGS_title}

Observed Results:

  • The command "succeeds", but
  • The Joomla files are downloaded in ${WEB___DIR}/${SETTINGS_title} where ${WEB___DIR} corresponds to www and ${SETTINGS_title} corresponds to site.

Expected Results:

  • The Joomla files are downloaded in ${WEB___DIR}/ where ${WEB___DIR} corresponds to www.
@stevenrombauts stevenrombauts added this to the 1.6 milestone May 27, 2020
@stevenrombauts
Copy link
Member

@sellerie98 Thanks for reporting this issue, we've pushed a fix and tagged a new v1.5.7 release for it.

@SteenSchutt
Copy link
Contributor

@stevenrombauts I noticed while testing this change in my environment, that you forgot to update the version in the code :)
https://github.com/joomlatools/joomlatools-console/blob/master/src/Joomlatools/Console/Application.php#L14

@stevenrombauts
Copy link
Member

@SteenSchutt 🤦‍♂️ Not the first time I forgot about that! Thanks for letting me know, I've updated it and re-tagged. Could take a little while before Packagist picks it up too.

@johanjanssens johanjanssens modified the milestones: 1.6, 1.5.7 Sep 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants