Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vagrant VVV commands #2005

wants to merge 4 commits into
base: develop

Vagrant VVV commands #2005

wants to merge 4 commits into from


Copy link

Mte90 commented Nov 18, 2019

Added 2 new commands and fix #1967 and #1531.

vagrant command wordpress-develop "ls -l"

To see the list of files inside that folder but can be used for other stuff (grunt watch).

Instead vagrant script xdebug_on will execute that script.

@Mte90 Mte90 requested a review from tomjn Nov 18, 2019
def execute
with_target_vms(nil, single_target: true) do |vm|
@env.ui.output "#{$yellow}Executing in #{$red}#{ARGV[1]}#{$yellow}: #{$red}#{ARGV[2]}#{$creset}\n"
vm.action(:ssh_run, ssh_run_command: "cd /srv/www/#{ARGV[1]}/public_html; #{ARGV[2]}")

This comment has been minimized.

Copy link

msaggiorato Nov 18, 2019


Is there a case for people wanting to run a command above public_html?

This comment has been minimized.

Copy link

Mte90 Nov 18, 2019

Author Contributor

this is the example of the wordpress-develop template, where you need to execute grunt watch on the vm instead of the host for issues as the ticket say.
I think that can be helpful also for plugin development with a switch to the folder in case there are symlinks required inside the VM.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.