civicrm / civicrm-buildkit-vagrant

MIT License
21 stars 19 forks source link

Problem to try $drush cr or any drush command #28

Open brandonCor96 opened 6 years ago

brandonCor96 commented 6 years ago

Problem to try $drush cr or any drush command

I have the same problem to try another command like $drush cpex config --changelist

Command cache-rebuild needs a higher bootstrap level to run - you [error] will need to invoke drush from a more functional Drupal environment to run this command. Command cache-rebuild requires Drupal core version 8+ to run. [error] The drush command 'cr' could not be executed. [error]

$drush status PHP configuration : /etc/php/7.0/cli/php.ini PHP OS : Linux Drush script : /usr/local/bin/drush Drush version : 8.1.13 Drush temp directory : /tmp Drush configuration : Drush alias files :

Drush Version : 8.1.13

I need help fix that...

mattwire commented 6 years ago

You need to run drush from a drupal directory. And, looks like you are trying to do something with Drupal 8 - but do you have drupal 8 installed?

brandonCor96 commented 6 years ago

Yes I'm in my local repository from my directory folder that in my case is public. So I have configured a settings local

mattwire commented 6 years ago

You would need to execute from /srv/www/[drupal-install-dir] within the vagrant environment (hint: vagrant ssh)