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

Redirect to the wordpress folder after vagrant ssh #320

Open
josuevalrob opened this issue Mar 10, 2018 · 1 comment
Open

Redirect to the wordpress folder after vagrant ssh #320

josuevalrob opened this issue Mar 10, 2018 · 1 comment
Labels

Comments

@josuevalrob
Copy link

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!

@miya0001
Copy link
Member

miya0001 commented Mar 10, 2018

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. 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants