Closed (won't fix)
Project:
Drush
Version:
8.x-6.x-dev
Component:
Core Commands
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
22 Aug 2012 at 22:31 UTC
Updated:
11 Sep 2013 at 11:29 UTC
I think this should be possible, but I'm lost as to how to accomplish it.
Acquia's Dev Desktop creates sites/[something].localhost/settings.php files for you. I do this a lot when importing a client's site locally.
It would be nice to add something to my ~/.drush folder to tell drush I want to use *.localhost for my default settings.php instead of sites/default/settings.php.
Any ideas or am I off on the wrong track?
Comments
Comment #1
moshe weitzman commentedI assume you are trying to install Drupal? See the --sites-subdir option for site-install command.
Comment #2
kscheirerNo, this isn't for installing Drupal - just for making Drush work better with dev desktop.
I have a very bad shell script that does what I'm looking for (use sites/*.localhost instead of sites/default).
I'd appreciate any comments - shell scripts are definitely not my thing :) but I'm not sure if anyone else find this ability useful.
Comment #3
greg.1.anderson commentedI think this might be acceptable, if someone provided a patch. There is no patch here, though, so setting status to "active".
Comment #4
greg.1.anderson commentedOh, and this is a feature request.
Comment #5
kscheirerIf you can point me to the right place to patch Drush, I'll work on it. The code I provided above is a shell script that I use to execute Drush, so I don't really know where that would go. Maybe a help file? Someone at Acquia want to provide this as part of dev desktop...? :D
Comment #6
greg.1.anderson commentedSee
_drush_bootstrap_selected_uri()in includes/bootstrap.inc; that looks like the most likely candidate to me.Comment #7
greg.1.anderson commentedThis issue was marked
closed (won't fix)because Drush has moved to Github.If this feature is still desired, you may copy it to our Github project. For best results, create a Pull Request that has been updated for the master branch. Post a link here to the PR, and please also change the status of this issue to
closed (duplicate).Please ask support questions on Drupal Answers.