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 89 forks source link

vv list doesn't show sites created with vvv-custom.yml #349

Open ghost opened 7 years ago

ghost commented 7 years ago

After adding this in my vvv-custom.yml, 'vv list' shows only the 4 default sites and doesn't show any other sites created with the following way. I've provisioned and the site works fine.

  website:
   repo: https://github.com/Varying-Vagrant-Vagrants/custom-site-template.git
   hosts:
     - website.dev
Vinsanity commented 7 years ago

@krismorf This new version of VVV provisions differently and is separate from how VV creates sites. If you ssh into the VM and have a look at the /etc/nginx/sites-available or /etc/nginx/sites-enabled you'll see how these entries are created by the new provisioner that reads that .yml file. The VV way was a more straight forward way of adding these entries.

Until VV is updated, you can do what I do which is to first run vv create and make your site then add your site to the .yml file and run vagrant provision --provision-with site-yoursitename.

This will essentially register the site with VV and make it accessible with the new provisioner. You might run into and issue with the /htdocs folder missing so you might need to create this manually or edit the nginx.conf to not look there for the site-root.

Hope this helps.