Last active
April 24, 2019 14:48
-
-
Save danielpataki/7670cf4a77e405f3b56b137d9d706770 to your computer and use it in GitHub Desktop.
Using VVV
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
vagrant plugin install vagrant-hostsupdater | |
vagrant plugin install vagrant-triggers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone git://github.com/Varying-Vagrant-Vagrants/VVV.git ~/websites/sites |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
192.168.50.4 vvv.dev local.wordpress.dev local.wordpress-trunk.dev src.wordpress-develop.dev build.wordpress-develop.dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git clone https://github.com/bradp/vv.git vv | |
cd vv | |
sudo cp vv /usr/local/bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 80; | |
listen 443 ssl; | |
server_name portfolio.dev; | |
root {vvv_path_to_folder}/htdocs; | |
include /etc/nginx/nginx-wp-common.conf; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey! lead VVV developer here, things have changed a bit since this was created, so some notes:
.dev
domains, so use.test
instead, they added lots of stringent security restrictions too so you can't use.dev
unless you have properly made SSL certificatesvvv-custom.yml
to add a site, no Nginx work neededvv
tool was abandoned, and has issues, don't use it.vvv-custom.yml
can handle everythingvv
didTo add a portfolio site, you just modify
vvv-custom.yml
like this:Re provision with
vagrant reload --provision
and you'll have a site at http://portfolio.test ( https://portfolio.test if you add the VVV SSL root certificate )