bradp / vv

:globe_with_meridians: Variable VVV - a VVV Site Creation Wizard.‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ :x: This project is no longer maintained. Please update your copy of VVV , which has most of the vv features built in.
GNU General Public License v2.0
1k stars 90 forks source link

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

Open tarikhamilton opened 7 years ago

tarikhamilton commented 7 years ago

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 commented 6 years ago

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