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

Commit 919344e

Browse files
author
Daryl Lozupone
committed
Merge branch 'release-0.10.7'
2 parents a8cd0d3 + 6e5688a commit 919344e

File tree

7 files changed

+27
-492
lines changed

7 files changed

+27
-492
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
.idea
22

3+
/sql/*
4+
!/sql/default.sql
5+
36
IP
47
.vagrant
58
/www/*
69
!/www/content/
710
/www/content/*
811
!/www/content/mu-plugins
912
/www/content/mu-plugins/*
10-
1113
/wp-tests/

FAQ.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ If you cannot create a `scripts/` directory in the same directory as your `Vagra
9999
`wplib-scripts/` — and then search for `scripts/` in your `Vagrantfile` and replace it with whatever you named your directory, e.g.
100100
with `wplib-scripts/` as in our example.
101101

102+
<<<<<<< HEAD
102103
<a id="existing-projects"></a>
103104
### How do I Configure Composer to Work with WPLib Box?
104105
Configure `composer.json` however you like; WPLib Box is agnostic with respect to Composer.
@@ -118,11 +119,17 @@ This can be accomplished by connecting to the guest machine via ssh:
118119
Change the pertinent line. Press `CTRL-X` to exit the program. When prompted to save the buffer, press `ENTER`. The filename will appear. Press `ENTER` again. Then enter the command `sudo service nginx restart`.
119120
Visit [http://wplib.box/phpinfo.php](http://wplib.box/phpinfo.php) (or whatever domain name you have configured for the box) to verify.
120121

122+
## How do I share my work with the outside world?
123+
124+
The box image has [localtunnel.me](https://localtunnel.me) pre-installed in the box. You can simply `ssh` into the guest and run: `lt --port 80`.
125+
This will provide you with a URL to share the local site until you exit the command by either terminating the program or shutting down the machine.
126+
127+
You can also use [Vagrant Share](https://www.vagrantup.com/docs/share).
128+
121129
##Glossary
122130
<a id="glossary"></a>
123131

124132
###What Do All These Terms Mean?
125-
=======
126133

127134
The following are terms we have decide to use in our FAQ and in other documents. If any of these terms conflict with broader industry terms please submit a pull request with any suggested corrects.
128135

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,15 @@ We think that once you try WPLib Box you will agree that we have succeeded. Wan
2020

2121
Service/Software|Version
2222
-------|----------
23-
PHP-FPM|5.6.20 && 7.0
23+
PHP/PHP-FPM|5.6.20 & 7.0
2424
MySQL|5.5
2525
nginx|1.4
2626
XDEBUG|2.3.3
2727
Redis|2.8.4
2828
WP CLI|0.23.0
29+
Nodejs|
30+
Gearman
31+
localtunnel.me
2932

3033
## Supported Host/Development Computers
3134
This box was developed using Mac OS/X and tested using Linux and Windows with [git-bash](https://git-for-windows.github.io/). Thus we believe it currently works with:
@@ -176,6 +179,10 @@ Password | `vagrant`
176179

177180
Instructions to come...
178181

182+
## Internet Sharing
183+
184+
Internet sharing is implemented with [localtunnel.me](https://localtunnel.me), which is pre-installed in the box image.
185+
179186
##How?
180187

181188
How have we been able to make **WPLib Box** the:

Vagrantfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,5 +266,9 @@ Vagrant.configure(2) do |config|
266266

267267
config.vm.provision "shell", path: "scripts/provision.sh"
268268

269+
config.trigger.before :halt do
270+
run_remote "mkdir -p /vagrant/sql && mysqldump -u wordpress -pwordpress wordpress > /vagrant/sql/current.sql"
271+
end
272+
269273
end
270274

scripts/provision.sh

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@
33
# WPLib Box provision script
44
#
55

6-
#
7-
# Import default database from /sql/default.sql
8-
#
9-
10-
mysql -u root wordpress < /vagrant/sql/default.sql
11-
126
#
137
# Symlink the Object Cache Drop-in for Redis, if not already symlinked
148
#

scripts/watchers/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# File Watchers (On-change scripts)
2+
3+
Files placed in this directory will be run whenever files in the `www` directory change. The files
4+
in this directory are expected to be either Bash scripts or PHP.

0 commit comments

Comments
 (0)