RobLoach / drush-docker

:whale: Docker Container to run Drush
http://registry.hub.docker.com/u/drush/drush
Other
19 stars 19 forks source link

Automatic Drush Sessions? #19

Open RobLoach opened 8 years ago

RobLoach commented 8 years ago

Passing in some environment variables will automatically create a Drush aliases for it:

DRUSH_URI
DRUSH_DB_URL
DRUSH_DB_ALLOWS_REMOTE
DRUSH_REMOTE_HOST
DRUSH_REMOTE_USER
DRUSH_SSH_OPTIONS

If any of these variables exist, write them as a Drush alias file as ~/.drush/docker.aliases.drushrc.php. The alias name should be @docker.

Another possibility might be calling site-set on the given options?