Download the PHP package oh17l/draft-environment without Composer
On this page you can find all versions of the php package oh17l/draft-environment. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download oh17l/draft-environment
More information about oh17l/draft-environment
Files in oh17l/draft-environment
Package draft-environment
Short Description Development environment for Draft Drupal.
License GPL-2.0-or-later
Informations about the package draft-environment
Draft Environment
This is Vagrant-based development environment for Drupal projects. This project is a part of a Draft Drupal project template.
Prerequisites
- PHP/Composer
Docker
- Docker
- docker-compose
Vagrant
- Vagrant
- VirtualBox
Vagrant plugins (will be automatically installed)
Vagrant Host Manager
Manages host and/or guest hosts
files. Draft is configured to create a hostname.test
DNS record on a host machine.
vagrant-vbguest
Automatically installs the host's VirtualBox Guest Additions on the guest system.
Vagrant WinNFSd (WINDOWS only)
Dramatically increases disk IO on Windows by adding NFS support.
How to
-
Add
post-install-cmd
andpost-update-cmd
events handlerLemberg\\Draft\\Environment\\Configurer::setUp
to thescripts
property of the rootcomposer.json
file. Resulting file might look like this: -
Add Draft to the project (as a dev dependency):
-
Configure guest machine by answering installer's questions. At the moment, project name (hostname) is the only setting that can be set interactively. More to come. Adjust other settings by editing
vm-settings.yml
manually -
Create and configure guest machine:
or
-
Override any variable used in any Ansible role by including it in the
vm-settings.yml
. For details see default.vm-settings.ymlHere's the list of used roles and available variables (and their default values):
- draft (internal)
- kamaln7.swapfile
- geerlingguy.mailhog
- git_config (internal)
- apache2 (internal)
- mysql (internal)
- T2L.php
- T2L.composer
- T2L.java
- T2L.solr
Some of those variables are already overridden. Find them here.
-
Commit
Vagrantfile
andvm-settings.yml
to lock the VM state -
File
vm-settings.yml
is project-specific, not a machine specific. Configuration can be overridden invm-settings.local.yml
(and this file must not be committed) - Run
vagrant ssh
. Project is located in/var/www/draft
by default (see default.vm-settings.yml)
Documentation
Everybody loves documentation. We do too! Check this out.
Changelog
Changelog can be found here CHANGELOG.md
Upgrade
Upgrade instructions can be found here UPGRADE.md