Browse Source

Updated for new Primary Vagrant folder structure

master
Chris Wiegman 3 years ago
parent
commit
80bf9be646
3 changed files with 14 additions and 14 deletions
  1. +3
    -3
      README.md
  2. +10
    -10
      pv-init.sh
  3. +1
    -1
      pv-mappings

+ 3
- 3
README.md View File

@@ -7,9 +7,9 @@ A WordPress VIP site configuration for [Primary Vagrant](https://github.com/Chri

Clone the Primary Vagrant VIP Add-on to _www/vip_ in your Primary Vagrant Folder

```git clone https://github.com/ChrisWiegman/Primary-Vagrant-VIP.git www/vip```
```git clone https://github.com/ChrisWiegman/Primary-Vagrant-VIP.git user-data/sites/vip```

Copy _vip.wordpress.pv.pp_ to the _userdata/siteconf_ folder
Copy _vip.wordpress.pv.pp_ to the _user-data/vhosts_ folder

Run Vagrant up.

@@ -20,4 +20,4 @@ To access the WordPress VIP development site:

**Username:** admin

**Password:** password
**Password:** password

+ 10
- 10
pv-init.sh View File

@@ -1,26 +1,26 @@
#!/bin/bash

# VIP Plugin - VIP Scanner
if [ ! -d "www/vip/wp-content/plugins/vip-scanner/.git" ]; then
git clone --recursive https://github.com/Automattic/vip-scanner www/vip/wp-content/plugins/vip-scanner
if [ ! -d "user-data/sites/vip/wp-content/plugins/vip-scanner/.git" ]; then
git clone --recursive https://github.com/Automattic/vip-scanner user-data/sites/vip/wp-content/plugins/vip-scanner
fi

# VIP Plugin - JetPack
if [ ! -d "www/vip/wp-content/plugins/jetpack/.git" ]; then
git clone https://github.com/Automattic/jetpack www/vip/wp-content/plugins/jetpack
if [ ! -d "user-data/sites/vip/wp-content/plugins/jetpack/.git" ]; then
git clone https://github.com/Automattic/jetpack user-data/sites/vip/wp-content/plugins/jetpack
fi

# VIP Plugin - Media Explorer
if [ ! -d "www/vip/wp-content/plugins/media-explorer/.git" ]; then
git clone https://github.com/Automattic/media-explorer www/vip/wp-content/plugins/media-explorer
if [ ! -d "user-data/sites/vip/wp-content/plugins/media-explorer/.git" ]; then
git clone https://github.com/Automattic/media-explorer user-data/sites/vip/wp-content/plugins/media-explorer
fi

# VIP Plugin - Writing Helper
if [ ! -d "www/vip/wp-content/plugins/writing-helper/.git" ]; then
git clone https://github.com/automattic/writing-helper www/vip/wp-content/plugins/writing-helper
if [ ! -d "user-data/sites/vip/wp-content/plugins/writing-helper/.git" ]; then
git clone https://github.com/automattic/writing-helper user-data/sites/vip/wp-content/plugins/writing-helper
fi

# VIP Plugin - VIP Scanner
if [ ! -d "www/vip/wp-content/plugins/amp/.git" ]; then
git clone https://github.com/automattic/amp-wp www/vip/wp-content/plugins/amp
if [ ! -d "user-data/sites/vip/wp-content/plugins/amp/.git" ]; then
git clone https://github.com/automattic/amp-wp user-data/sites/vip/wp-content/plugins/amp
fi

+ 1
- 1
pv-mappings View File

@@ -1 +1 @@
config.vm.synced_folder "www/vip", "/var/www/vip.wordpress.pv", :owner => "www-data", :mount_options => [ "dmode=775", "fmode=774" ]
config.vm.synced_folder "user-data/sites/vip", "/var/www/vip.wordpress.pv", :owner => "www-data", :mount_options => [ "dmode=775", "fmode=774" ]