Posted by Steven Merrill on November 23, 2011 at 6:07pm
Vagrant gives you the tools to build unique development environments for each project once and then easily tear them down and rebuild them only when they’re needed so you can save time and frustration.
The "drush vagrant" command prompts you for information about Drupal sites running in Vagrant VM and then parses the output of vagrant ssh-config and renders a Drush remote alias for you to stick into your aliases.drushrc.php file.
As an example:
drush vagrant
Attempting to read the Vagrant SSH configuration.
No errors found in the Vagrant SSH configuration. [ok]
Please enter the information about the Drupal site inside the VM.
Alias [drush-vagrant]: tha-vagrant
URI [http://vagrantvm.dev/]: http://local.treehouseagency.com/
Docroot location [/var/www/html/]: /tha-docroot/
Rendering the remote alias entry.
The remote alias entry is below. Please paste it into an aliases.drushrc.php file. [ok]
$aliases['tha-vagrant'] = array(
'uri' => 'http://local.treehouseagency.com/',
'root' => '/tha-docroot/',
'remote-host' => 'default',
'remote-user' => 'vagrant',
'ssh-options' => "-o'HostName 127.0.0.1' -o'Port 22215' -o'UserKnownHostsFile /dev/null' -o'StrictHostKeyChecking no' -o'PasswordAuthentication no' -o'IdentityFile /Users/smerrill/.rvm/gems/ruby-1.9.2-p290/gems/vagrant-0.8.7/keys/vagrant' -o'IdentitiesOnly yes' ",
);Downloads
Recommended releases
Other releases
Development releases
Project Information
- Maintenance status: Actively maintained
- Development status: Under active development
- Module categories: Developer, Drush, Multisite, Third-party Integration
- Downloads: 133
- Last modified: May 11, 2012
