Skip to content
This repository has been archived by the owner on Jun 21, 2023. It is now read-only.

Getting started: DrupalVM

Matt Glaman edited this page Sep 21, 2017 · 4 revisions

This section outlines how to use this project with DrupalVM on the drupalvm-config branch.

Creating a project

Run the following command to create a project based off of this template for DrupalVM

composer create-project \
  mglaman/commerce-project-template:dev-drupalvm-config \
  --stability dev --no-interaction \
  CHANGE_TO_YOUR_DIRECTORY_NAME

Configure DrupalVM

The configuration for DrupalVM is in the vm directory. This project is set up to support the local Vagrant environment but then also production configuration when deployed to your server.

  • config.yml: This is shared configuration for all environments.
  • prod.config.yml: This is configuration used to override config.yml when deployed with the prod flag.
  • vagrant.config.yml: This is configuration used for the local Vagrant environment.

Configure config.yml

Change the drupal_domain to be a domain of your choice. This could be myawesomesite.com for example.

Configure vagrant.config.yml

You should be fine with this, out of the box! Your local environment domain is "local.{{ drupal_domain }}"

Config prod.config.yml

You will want to adjust the following items:

  • drupal_deploy_repo: This is a Git URL to your project for deployment.

Full configuration documentation can be found at http://docs.drupalvm.com/en/latest/getting-started/configure-drupalvm/.