jcisio / docker-drupal

Easy Drupal development with multiple vhosts using Docker
MIT License
2 stars 0 forks source link

Add intelligent Drush launcher #1

Open jcisio opened 4 years ago

jcisio commented 4 years ago

We need a drush command that detects the current project, connects to the corresponding php container and runs drush command in the corresponding project.

jcisio commented 4 years ago

There is DockerGo. We can add an alias drush="DockerGo drush" if we want.

Now DocerGo always runs commands in the php71 container. It needs to be fixed, by checking the content of $DOCKER_PATH_WEB/conf/apache/vhosts.conf file to extract PHP version.