Skip to content

MarieKirya/tagd8-vagrant

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tagd8-vagrant

A Vagrant virtual machine configuration and provisioner, for use as a test or development environment for Drupal applications.

NOTE this virtual machine should not be used in a production environment.

Usage

The Vagrant configuration and Puppet provisioning scripts are contained in the /private directory. Using the VM can be accomplished via the following steps:

  • Install Vagrant.
  • Copy the entire /private directory to the root directory of your Drupal codebase.
  • Copy the /private/example.config.yml to /private/config.yml, and edit it with your preferred hostname and IP address.
  • From the /private directory, run vagrant up. This will create and provision the VM.
  • Run vagrant plugin install vagrant-hostsupdater to install a plugin to handle adding your host to /etc/hosts.
  • Create or load your site database into the VM mysql server. For testing purposes the provisioner creates a user and database named vagrant.
  • Connect to your new test site in your browser at the URL you've chosen.
  • Your site code is mounted on the Vagrant VM in the /vagrant directory.

Bonuses

In the /private directory there is a folder for things to add to your docroot.

  • tag_dev - A module that supplies customizable drush golocal, drush godev, and drush gotest commands. Feel free to add onto them for project specific reasons to make your development experience smoother.
  • setup.sh - A basic site setup script that enables development modules after site install.

About

Drupal 8 Vagrant / Puppet Development VM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 94.2%
  • JavaScript 2.7%
  • HTML 1.5%
  • CSS 1.4%
  • Shell 0.2%
  • ApacheConf 0.0%