Islandora-Devops / isle-dc

ISLE 8 - Dockerized Islandora 8 Deployment orchestrated with docker-compose
MIT License
23 stars 60 forks source link

Set DRUSH_OPTIONS_URI in Drupal container #410

Closed xurizaemon closed 3 weeks ago

xurizaemon commented 1 month ago

Without URI set, Drush defaults to http://default.

69e89db055bd:/var/www/drupal# drush status --fields='Site URI'
Site URI : http://default 

Since we set DRUSH_DEFAULT_SITE_URL, we can populate DRUSH_OPTIONS_URI too and save some unnecessary --uri.

69e89db055bd:/var/www/drupal# export DRUSH_OPTIONS_URI=${DRUPAL_DEFAULT_SITE_URL} 
69e89db055bd:/var/www/drupal# drush status --fields='Site URI'
Site URI : http://islandora.example.org
# and for drush user:login, etc.