This PR introduces a new yaml configuration option called network which allows you to choose between the vagrant private and public network interfaces.
Please note that the yaml will fall back to private if any other value is used.
Why
Using a public vagrant network allows you to expose your box over your (local) network which is extremely useful for situations where testing from your workstation alone just won't cut it (e.g. when developing mobile applications).
A real world use case would be testing your mobile application from a non-broken iPhone.:
Configure your yaml to use the public vagrant network
Create a public DNS record cakebox.yourdomain.com pointing to the ip-address of your box (e.g. 192.168.1.10)
Open your iPhone and browse to cakebox.yourdomain.com
This PR introduces a new yaml configuration option called
network
which allows you to choose between the vagrantprivate
andpublic
network interfaces.Please note that the yaml will fall back to
private
if any other value is used.Why
Using a public vagrant network allows you to expose your box over your (local) network which is extremely useful for situations where testing from your workstation alone just won't cut it (e.g. when developing mobile applications).
A real world use case would be testing your mobile application from a non-broken iPhone.:
public
vagrant networkcakebox.yourdomain.com
pointing to the ip-address of your box (e.g.192.168.1.10
)cakebox.yourdomain.com
How
cd cakebox
git pull
Cakebox.yaml
vagrant reload