sudo vim /etc/hosts
- type
i
to edit the file - add
192.168.10.10 [repo-name].test
on a new line - press esc to exit edit mode
- type
:wq
, thenenter
, to write and quit vim vim ~/Homestead/Homestead.yaml
- type
i
to edit the file - under sites:, add another pair of map: / to: entries
- press esc to exit edit mode
- type
:wq
, thenenter
, to write and quit vim cd ~/Homestead/
vagrant reload --provision
Once the above is done, [repo-name].test should be available in your browser.
Don't forget to add [repo-name].test to your project's webpack.mix.js
file, as its localUrl:
value, around line 6.