Skip to content

Instantly share code, notes, and snippets.

@jmolivas
Last active April 18, 2018 07:24
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmolivas/ec15eb92833f8a16f2d325a962321104 to your computer and use it in GitHub Desktop.
Save jmolivas/ec15eb92833f8a16f2d325a962321104 to your computer and use it in GitHub Desktop.
Executing DrupalConsole commands on a project with DrupalVM using vagrant-exec plugin no need to create a site alias configuration or ssh into the VM. Project file is config/Vagrantfile.local
vagrant exec bin/drupal generate:module
vagrant plugin install vagrant-exec
if Vagrant.has_plugin?('vagrant-exec')
config.exec.commands '*', directory: '/var/www/drupal'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment