Instantly share code, notes, and snippets.

Embed
What would you like to do?
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