-
Notifications
You must be signed in to change notification settings - Fork 37
Use ngrok to share websites #88
Comments
|
@stevenrombauts we seem to be phasing out vagrant share in favour of ngrok elsewhere: I've tested ngrok with the joomlatools-vagrant box:
From outside the box correctly routes the user to the joomla.box dashboard. Simply running:
from outside the box routes the user to their host server... which makes sense. If we wanted users to run Thoughts? |
|
@yiendos I'm not in favour of installing this on the box. It's supposed to be run from the host machine and then pointed at the right hostname and port. If you want to use https support or any other paid feature, you also don't want to be duplicating your configuration to both box and host. It would also mean we have to manage documentation for something that is clearly explained on its own website, but we would then require a different way of using it. Eg. on the box you won't be able to point to custom subdomains (like joomlatools.test if you create a 'joomlatools' site) because it won't resolve. (joomla.box will resolve but only because we added it to the hosts file explicitly on the box). I'm really just in favour of using it how its supposed to:
There are other tools out there to do these things and everybody already uses his or her preferred method anyway, I think. |
|
This ticket is still related to the old Vagrant Share option, so I suggest we close this. We don't have the issue anymore because ngrok can perfectly share the dashboard now. |
|
@stevenrombauts check makes sense, ngrok is the way to go forward. We should update any references to vagrant share in the documentation: |
|
@yiendos Apologies, I opened your README link from the email and updated it in master: https://github.com/joomlatools/joomlatools-vagrant/blob/master/README.md#sharing-access-to-the-box 🤦♂️ |
|
@stevenrombauts opps I'll watch out for that easter egg functionality :) |
|
@yiendos Feel free to merge your text as you want, I like the introduction :) |
Update following discussions on Slack - Friday 10th May 2019 |
Since support for vagrant share has been withdrawn and users encouraged to go down the ngrok route, there has been a problem sharing sites via
-host-header=rewrite.ngrok http joomla.box 80Works perfectly fine for users wanting to share their site via
joomla.box/testing... addresses but if you wanted to share direct access to the sitetesting.testthis didn't work so well.ngrok http -host-header=rewrite testing.test:80The site would load, but then all subsequent url clicks meant urls would be written to
http://testing.testmeaning the site would revert back to local server and this would not be available to the guest viewing the site.The text was updated successfully, but these errors were encountered: