Skip to content
This repository has been archived by the owner on May 25, 2020. It is now read-only.

Sharing your local environment

Jonas Keinholz edited this page Dec 15, 2015 · 1 revision

Vagrant share allows you to share your local environment for testing purposes (e.,g. to test your changes on a mobile device).

Preparation

Do the following steps once.

vagrant login

Creating a vagrant share

To make your local environment accessible for other users, you have to create a share

vagrant share --http 80

This should output something like this:

==> default: Detecting network information for machine...
    default: Local machine address: 10.211.55.31
    default: Local HTTP port: 80
    default: Local HTTPS port: disabled
==> default: Checking authentication and authorization...
==> default: Creating Vagrant Share session...
    default: Share will be at: dreadful-bull-5204
==> default: Your Vagrant Share is running! Name: dreadful-bull-5204
==> default: URL: http://dreadful-bull-5204.vagrantshare.com

Now you (or others) can access your local environment on http://de.dreadful-bull-5204.vagrantshare.com resp. http://en.dreadful-bull-5204.vagrantshare.com. Don't forget to replace dreadful-bull-5204 with the name of your share.

Note. If this doesn't work, try vagrant share --http 4567 instead.

Stopping your vagrant share

To stop the share, simply kill vagrant share with CTRL+C.

Clone this wiki locally