dev1: hey "dev2" can you check this site i'm doing in your machine.
dev2: ok, how do i get in?.
dev1: add to your host file "client.local" ponting to "192.168.1.101"
dev2: ok give me a second.
... some time passes ... (admin / root rights, some file changes, etc...)
dev2: wow.. that's slick!.
... roll back changes to host file ...
What is xip.io?
xip.io is a magic domain name that provides wildcard DNS for any IP address.
In my case i use a virtual box for my web developing (lamp stack) and i use this name schema for our projects: project.vbox or client.vbox .
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
DocumentRoot /client/path | |
Servername client.vbox | |
... | |
</VirtualHost> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
DocumentRoot /client/path | |
Servername client.vbox | |
ServerAlias client.*.xip.io | |
... | |
</VirtualHost> |
This will accept urls like http://client.192.168.1.101.xip.io, so next time your chat will be:
dev1: hey "dev2" can you check this site i'm doing in your machine, open this in your browser http://coolwebapp.192.168.1.101.xip.io
dev2: wow.. that's slick!.
No hay comentarios.:
Publicar un comentario