wckr / wocker

Create your WordPress development environment in 3 SECONDS!
https://wocker.dev/
MIT License
480 stars 42 forks source link

Can't get Vagrant share to work with Wocker #61

Open pbolger opened 7 years ago

pbolger commented 7 years ago

I have an account, it's generating the temporary link fine, but all I get is a 404. Anybody got any idea how to get it to run?

ixkaito commented 7 years ago

Hi @pbolger, thanks for reporting the issue. I haven't tried Vagrant share with Wocker. I'll do it later. Before that, why don't you try ngrok https://ngrok.com/?

pbolger commented 7 years ago

Thanks @ixkaito, ngrok looks interesting, although I'm a bit unclear on whether you have to pay to try it out.

I can't help feeling that getting Vagrant share wouldn't be that hard (I suspect it's just looking at the wrong directory on the local server) but it's a bit lean on the troubleshooting tools so far.

ailispaw commented 7 years ago

You can try as below.

  1. Add config.vm.network :forwarded_port, guest: 80, host: 8080 into your Vagrantfile.
  2. vagrant reload
  3. vagrant login
  4. vagrant share --http 8080

Note: You may need wocker start to run a container after vagrant reload. And also wocker wp plugin install dynamic-hostname --activate for an another domain name but wocker.dev.

ailispaw commented 7 years ago

Vagrant Share seems very slow and has unstable connection...

ailispaw commented 7 years ago

Vagrant v1.9.2 released! | HashiCorp https://www.hashicorp.com/blog/vagrant-1-9-2-released/

Share via ngrok
Vagrant share now supports creating shares using ngrok as the underlying means of communication.

https://github.com/mitchellh/vagrant/blob/master/website/source/docs/share/ngrok.html.md

ixkaito commented 7 years ago

Great news!