Skip to content
This repository was archived by the owner on Jan 25, 2022. It is now read-only.

Commit bd102b2

Browse files
committed
Merge branch 'dev'
2 parents 28ec7e7 + 4fe4534 commit bd102b2

File tree

407 files changed

+585
-53729
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

407 files changed

+585
-53729
lines changed

.gitignore

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
1-
.idea
2-
1+
/.idea
32
/sql/*
43
!/sql/default.sql
5-
IP
6-
.vagrant
4+
/IP
5+
/.vagrant
6+
/.vscode
7+
/.wplib-box.git
8+
/.save.git
9+
/logs
10+
/scripts
11+
/www/*
12+
!/www/content/
13+
!/www/content/object-cache.php
14+
/www/content/mu-plugins/wp-redis
15+
/www/content/plugins/helpful-information
16+
/www/content/plugins/query-monitor
17+
/www/content/themes/twentysixteen
18+
/watchers

Vagrantfile

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,10 +268,20 @@ Vagrant.configure(2) do |config|
268268
config.ssh.forward_agent = true
269269
config.ssh.insert_key = false
270270

271-
config.vm.provision "shell", path: "scripts/guest/provision.sh"
271+
$provision = <<PROVISION
272+
if [ -f "/vagrant/scripts/provision.sh" ]; then
273+
bash /vagrant/scripts/provision.sh --force
274+
else
275+
rm -rf /tmp/box-scripts 2>/dev/null
276+
git clone https://github.com/wplib/box-scripts.git /tmp/box-scripts 2>/dev/null
277+
bash /tmp/box-scripts/provision.sh
278+
fi
279+
PROVISION
280+
281+
config.vm.provision "shell", inline: $provision
272282

273283
config.trigger.before :halt do
274-
run_remote "mkdir -p /vagrant/sql && mysqldump -u wordpress -pwordpress wordpress > /vagrant/sql/current.sql"
284+
run_remote "box backup-db"
275285
end
276286

277287
end

WPLIB_BOX_GIT_REPO

Lines changed: 0 additions & 13 deletions
This file was deleted.

scripts/guest/cli

Lines changed: 0 additions & 1 deletion
This file was deleted.

scripts/guest/provision.sh

Lines changed: 0 additions & 41 deletions
This file was deleted.

scripts/guest/watchers/README.md

Lines changed: 0 additions & 4 deletions
This file was deleted.

scripts/guest/watchers/run-me.sh

Lines changed: 0 additions & 3 deletions
This file was deleted.

scripts/host/after-composer.php

Lines changed: 0 additions & 33 deletions
This file was deleted.

www/index.php

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
11
<?php
2-
define( 'WP_USE_THEMES', true );
3-
require( __DIR__ . '/wp/wp-blog-header.php' );
2+
/**
3+
* Front to the WordPress application. This file doesn't do anything, but loads
4+
* wp-blog-header.php which does and tells WordPress to load the theme.
5+
*
6+
* @package WordPress
7+
*/
8+
9+
/**
10+
* Tells WordPress to load the WordPress theme and output it.
11+
*
12+
* @var bool
13+
*/
14+
define('WP_USE_THEMES', true);
15+
16+
/** Loads the WordPress Environment and Template */
17+
require( dirname( __FILE__ ) . '/wp/wp-blog-header.php' );

www/wp/index.php

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)