Last active
April 18, 2018 07:24
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vagrant exec bin/drupal generate:module | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vagrant plugin install vagrant-exec | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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