Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit a95318c

Browse files
committed
Merge pull request #104 from grasmash/drupalvm-docs
Updating docs for Drupal VM.
2 parents 6994f2c + acc0c6b commit a95318c

File tree

1 file changed

+36
-13
lines changed

1 file changed

+36
-13
lines changed

template/readme/local-development.md

+36-13
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
Acquia currently recommends the use of either:
44

5-
* [Drupal VM](http://www.drupalvm.com/): An isolated virtual machine, built with Vagrant and Ansible.
6-
* [Acquia Dev Desktop](https://www.acquia.com/products-services/dev-desktop): A turn-key LAMP stack tailored specifically for Acquia-hosted Drupal sites.
5+
* [Drupal VM](#drupal-vm): An isolated virtual machine, built with Vagrant and Ansible.
6+
* [Acquia Dev Desktop](#dd): A turn-key LAMP stack tailored specifically for Acquia-hosted Drupal sites.
77

88
No matter what local environment you choose to use, the following guidelines should be followed:
99

@@ -23,18 +23,36 @@ If you must use Windows, we recommend that:
2323
* [cmder](http://cmder.net/)
2424
* [cygwin](https://www.cygwin.com/)
2525

26-
## Using Drupal VM for BLT-generated projects
26+
## <a name="drupal-vm"></a>Using Drupal VM for BLT-generated projects
2727

28-
To use Drupal VM with a Drupal project that is generated with BLT, first place your downloaded copy of Drupal VM inside the generated Drupal project folder, and name the drupal-vm directory `box`.
28+
To use [Drupal VM](https://www.acquia.com/products-services/dev-desktop) with a Drupal project that is generated with BLT:
2929

30-
To make sure Drush commands work correctly with Drupal VM, inside the new project's `build/custom/phing/build.yml` file, override the `docroot` used for Drush commands with the value:
30+
1. Place your downloaded copy of Drupal VM inside the generated Drupal project folder, and name the drupal-vm directory `box`.
31+
2. Inside the new project's `build/custom/phing/build.yml` file, override the `docroot` used for Drush commands with the value:
3132

33+
```
3234
drush:
33-
root: /var/www/[project_machine_name]/docroot
34-
35-
Then follow the Quick Start Guide in [Drupal VM's README](https://github.com/geerlingguy/drupal-vm#quick-start-guide), but before you run `vagrant up`, make the following changes to your VM
36-
`config.yml` file:
37-
35+
root: ''
36+
```
37+
3. Add a drush alias to `drush/site-aliases/aliases.drushrc.php`:
38+
39+
```
40+
// [vagrant_machine_name].local
41+
$aliases['[vagrant_machine_name].local'] = array(
42+
// /var/www/[vagrant_machine_name]/docroot
43+
'root' => '/var/www/[vagrant_machine_name]/docroot',
44+
// vagrant_hostname
45+
'uri' => '[vagrant_hostname]',
46+
// vagrant_hostname
47+
'remote-host' => '[vagrant_hostname]',
48+
'remote-user' => 'vagrant',
49+
'ssh-options' => '-i ~/.vagrant.d/insecure_private_key',
50+
);
51+
```
52+
4. Follow the Quick Start Guide in [Drupal VM's README](https://github.com/geerlingguy/drupal-vm#quick-start-guide)
53+
5. Before you run `vagrant up`, make the following changes to your VM `config.yml` file:
54+
55+
```
3856
# Update the hostname to the local development environment hostname.
3957
vagrant_hostname: [project_local_domain]
4058
vagrant_machine_name: [project_machine_name]
@@ -74,17 +92,22 @@ Then follow the Quick Start Guide in [Drupal VM's README](https://github.com/gee
7492
# `php5-xsl` to `extra_packages`.
7593
extra_packages:
7694
- unzip
77-
- php5-xsl
95+
# - php5-xsl
96+
97+
drupal_mysql_user: drupal
98+
drupal_mysql_password: drupal
99+
```
100+
78101
79102
There are also other changes you can make if you choose to match the Acquia Cloud server configuration more closely. See Drupal VM's example configuration changes in Drupal VM's `examples/acquia/acquia.overrides.yml` file.
80103
81104
Once you've made these changes and completed the steps in Drupal VM's Quick Start Guide, you may run `vagrant up` to bring up your local development environment, and then access the site via the configured `drupal_domain`.
82105
83-
## Using Acquia Dev Desktop for BLT-generated projects
106+
## <a name="dd"></a>Using Acquia Dev Desktop for BLT-generated projects
84107
85108
### Project creation and installation changes
86109
87-
Add a new site in Dev Desktop by selecting _Import local Drupal site_. Point it at the `docroot` folder inside your new code base. Your `/sites/default/settings.php` file will be modified automatically to include the Dev Desktop database connection information.
110+
Add a new site in [Dev Desktop](https://www.acquia.com/products-services/dev-desktop) by selecting _Import local Drupal site_. Point it at the `docroot` folder inside your new code base. Your `/sites/default/settings.php` file will be modified automatically to include the Dev Desktop database connection information.
88111
89112
### Drush support
90113

0 commit comments

Comments
 (0)