- Drupal 8 Development Cookbook(Second Edition)
- Matt Glaman
- 158字
- 2025-04-04 18:20:50
How to do it...
Let's set up the DrupalVM project by Jeff Geerling by following these steps:
- Download the DrupalVM archive from https://github.com/geerlingguy/drupal-vm/archive/master.zip.
- Extract the archive and place the project in the directory of your choice.
- Copy example.drupal.make.yml to drupal.make.yml.
- Copy default.config.yml to config.yml.
- Edit config.yml and modify the local_path setting to be the directory where you've placed the DrupalVM project. This will be synchronized into the virtual machine:
vagrant_synced_folders: local_path: /path/to/drupalvm destination: /var/www type: nfs create: true
- Open a terminal and navigate to the directory where you have placed the
DrupalVM project. - Enter the vagrant up command to tell Vagrant to build the virtual machine and begin the provisioning process.
- While this process is ongoing, modify your host file to provide easy access to the development site. Add the 192.168.88.88 drupalvm.dev line to your host file.
- Open your browser and access http://www.drupalvm.com/.
- Log in to your Drupal site with the username admin and password admin.