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

VV host files not being read, thus my hosts file isn't being updated (or vvv-config.yml?) #359

Open
tarikhamilton opened this issue Jul 18, 2017 · 1 comment

Comments

@tarikhamilton
Copy link

system info
MacOS Sierra 10.12.5

version
1.12

debug output
/usr/local/bin/vv: line 1481: version: command not found

vv: /usr/local/bin/vv

vv_config: /Users/tarik/.vv-config
vvv path: /Users/tarik/dev/VVV/
home: /Users/tarik

tput:
cat: /bin/cat
curl: /usr/bin/curl
brew: /usr/local/bin/brew
tar: /usr/bin/tar
find: /usr/bin/find
git: /usr/bin/git
sed: /usr/bin/sed
paste: /usr/bin/paste
vagrant: /usr/local/bin/vagrant

The issue:
I just did a new vv create today and all my vv sites stopped working. When I vagrant up, I see that only the defaults get added to the host file. So, all my previous vv sites are no longer added.

I didn't know how VVV worked in regards to updating the hosts file, but I guess it updates vvv-config.yml (or in the code it seems to make a copy called vvv-custom.yml). I don't see a vvv-custom.yml file and my vvv-config.yml just has the defaults.

I got around the issue by manually updating the vvv-config.yml, but something seemed to happen. After that I updated VVV and VV, the issue still persists, so something has changed?

Side note, I was one of the users who had to vagrant ssh and run the vvv-init.sh script because for whatever reason it would not work outside the VM.

@tomjn
Copy link
Contributor

tomjn commented Dec 11, 2017

You have to modify vvv-custom.yml, I'd recommend creating sites entirely via vvv-custom.yml instead of vv using the custom site template

https://github.com/Varying-Vagrant-Vagrants/custom-site-template/

e.g. putting this under the sites section of the config will create http://my-site.test in the www/my-site folder

  my-site:
    repo: https://github.com/Varying-Vagrant-Vagrants/custom-site-template
    hosts:
      - my-site.test

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants