Skip to content
This repository has been archived by the owner on Apr 17, 2024. It is now read-only.

Drush is required to install composer #29

Open
mrleblanc101 opened this issue Feb 4, 2019 · 7 comments
Open

Drush is required to install composer #29

mrleblanc101 opened this issue Feb 4, 2019 · 7 comments

Comments

@mrleblanc101
Copy link

Hi,
I've followed the instruction exactly but I get:

» docker-compose exec php composer run-script install:with-mysql
> scripts/install-mysql.sh
./scripts/install.sh: line 23: /var/www/vendor/drush/drush/drush
: No such file or directory
 ERROR  Drush is required to install Contenta CMS. Please install Contenta CMS using Composer. See http://www.contentacms.org/#install
Script scripts/install-mysql.sh handling the install:with-mysql event returned with error code 5

Drush is installed correctly in the vendor directory and the path to it in the script seem ok.
capture d ecran le 2019-02-04 a 17 16 18
Someone has an idea ?

@mrleblanc101
Copy link
Author

Seem like it used my local composer.
I had to composer global remove drush/drush
Is this a bug ? Shouldn't it use the composer in the docker container ?

@e0ipso
Copy link
Member

e0ipso commented Feb 8, 2019

Maybe @pcambra knows the answer to the question above ☝️.

@MykaMart
Copy link

I'm running into this issue as well. An inspection inside the running container confirms that it missing the nested /vender/drush/drush folder in /var/www. Anyone have any thoughts on how to remedy this?

@trevortwining
Copy link

Same issue here. Working on it today. If I resolve it, I'll submit a PR.

@pcambra
Copy link
Member

pcambra commented Sep 18, 2019

I've updated both composer and moved to a more modern mode to install drush using cgr on 80a41a1, could you confirm this is fixed?

@MykaMart
Copy link

It was not, Contenta was still unable to find drush where it was expecting it during the install.

I have created a pull request that solves the issue. The new Dockerfile creates the folder structure the installer is expecting and creates a symlink between the new folder and drush.

I have tested this fix and was able to complete the install.

@pcambra
Copy link
Member

pcambra commented Nov 18, 2019

I must be missing something because according to the commit above and this contentacms/contenta_jsonapi@a8cd75b, there should not be a need for global drush, maybe we should explore why local drush is not being run

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants