vccw icon indicating copy to clipboard operation
vccw copied to clipboard

Redirect to the wordpress folder after vagrant ssh

Open josuevalrob opened this issue 6 years ago • 1 comments

Hello, I just want to propose a new feature: Redirect to the WordPress folder after vagrant ssh

After you run vagrant ssh and access to the virtual machine, you need to run: $ cd /vagrant/wordpress/ to access the WordPress folder. Yes, I know that they are synchronized and you can edit any file on your machine. But there are commands like wp-cli that need to be run in the virtual machine.

I think its a very good idea... can someone tell me how to do it, I will open a pull request after implementing. thanks!

josuevalrob avatar Mar 10 '18 10:03 josuevalrob

You can use WP-CLI like wp @vccw.test plugin list from host machine and you can use WP-CLI anywhere in the guest machine. And also, if you edit wp-config.php like following.

define( 'DB_HOST', '192.168.33.10' );

You can use use WP-CLI command in wordpress directory from your host machine.

But if you have a more better solution to use WP-CLI, I will happy to see your PR.

Thanks. 😊

miya0001 avatar Mar 10 '18 19:03 miya0001