To start up a LAMP stack virtual machine ready for Drupal 8 development, do the following:
- Clone this repository to a convenient locaion.
cd
into the repository and clone your webroot intohtml
:
cd puppet-centos && git clone --branch 8.0.x http://git.drupal.org/project/drupal.git html
- Install optional plugins (this only needs to happen once on your workstation):
vagrant plugin install vagrant-triggers
- Run
vagrant up
to start up the virtual machine. You will be presented with a link at the end of the startup to the virtual machine:
==> default: Running triggers after up...
==> default: Build complete for puppet-centos
==> default: http://localhost:6480/
The link can be re-displayed at any time by running vagrant up
A blank database is created automatically. The database name, username, and password are all "vagrant".
You can set up the initial Drupal database using the install.php web UI or drush (Drush 8 is installed by default).
vagrant halt
- power off the virtual machinevagrant suspend
- hibernate the virtual machinevagrant up
- start up the virtual machine, creating it if necessaryvagrant destroy
- delete the virtual machine and destroy its contentvagrant rsync-auto
- watch thehtml
directory and sync any local changes into the virtual machine, most useful when run in the backgroundvagrant rsync-auto &
vagrant rsync
- do a one-time sync of the html directoryvagrant provision
- re-run the provisioning scripts, useful when changing the Vagrantfile or puppet/hiera configurations