Adding /etc/hosts entry to host machine on vagrant up -


is possible 1 modify files on host machine during vagrant up process? example, adding entry host machine's /etc/hosts file avoid having manually?

the solution use vagrant-hostsupdater

vagrant plugin install vagrant-hostsupdater 

this plugin adds entry /etc/hosts file on host system.

on , reload commands, tries add information, if not existant in hosts file. if needs added, asked administrator password, since uses sudo edit file.

on halt, suspend , destroy, entries removed again.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -