You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
Copy file name to clipboardexpand all lines: template/readme/local-development.md
+36-13
Original file line number
Diff line number
Diff line change
@@ -2,8 +2,8 @@
2
2
3
3
Acquia currently recommends the use of either:
4
4
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.
7
7
8
8
No matter what local environment you choose to use, the following guidelines should be followed:
9
9
@@ -23,18 +23,36 @@ If you must use Windows, we recommend that:
23
23
*[cmder](http://cmder.net/)
24
24
*[cygwin](https://www.cygwin.com/)
25
25
26
-
## Using Drupal VM for BLT-generated projects
26
+
## <aname="drupal-vm"></a>Using Drupal VM for BLT-generated projects
27
27
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:
29
29
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:
31
32
33
+
```
32
34
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`:
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
+
```
38
56
# Update the hostname to the local development environment hostname.
39
57
vagrant_hostname: [project_local_domain]
40
58
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
74
92
# `php5-xsl` to `extra_packages`.
75
93
extra_packages:
76
94
- unzip
77
-
- php5-xsl
95
+
# - php5-xsl
96
+
97
+
drupal_mysql_user: drupal
98
+
drupal_mysql_password: drupal
99
+
```
100
+
78
101
79
102
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.
80
103
81
104
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`.
82
105
83
-
## Using Acquia Dev Desktop for BLT-generated projects
106
+
## <a name="dd"></a>Using Acquia Dev Desktop for BLT-generated projects
84
107
85
108
### Project creation and installation changes
86
109
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.
0 commit comments