This is a Vagrant configuration designed for development of WordPress plugins, themes, or websites.
If you didn't install Homebrew
- Install
homebrew
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
If you didn't install rbenv
- Install
rbenv
onhomebrew
$ brew install rbenv
$ echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc
$ echo 'if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi' >> ~/.zshrc
$ brew install ruby-build
$ brew install rbenv-gemset
$ brew install rbenv-gem-rehash
$ exec $SHELL -l
# Install ruby
$ rbenv install 2.2.2
$ rbenv global 2.2.2
If you didn't install pyenv
- Install
pyenv
onhomebrew
$ brew install pyenv
$ echo 'export PYENV_ROOT="${HOME}/.pyenv"' >> ~/.zshrc
$ echo 'if [ -d "${PYENV_ROOT}" ]; then' >> ~/.zshrc
$ echo ' export PATH=${PYENV_ROOT}/bin:$PATH' >> ~/.zshrc
$ echo ' eval "$(pyenv init -)"' >> ~/.zshrc
$ echo 'fi' >> ~/.zshrc
$ exec $SHELL -l
# Install python
$ pyenv install 2.7.10
$ pyenv global 2.2.2
If you didn't install AWS-CLI
- Install
awscli
onpip
- Create config file on
~/.aws/config
$ pip install awscli
$ aws configure
# AWS Access Key ID [None]: XXXX
# AWS Secret Access Key [None]: XXXXXXXX
# Default region name [None]: ap-northeast-1
# Default output format [None]: text
-
Install VirtualBox.
-
Install Vagrant.
from http://www.vagrantup.com/
$ vagrant -v # e.g. Vagrant 1.7.2
-
Install Rake
$ gem install rake
-
Clone this repository.
$ git clone [email protected]:wata/vacw.git
-
Change into the new directory.
$ cd vacw
-
Initial setup.
$ rake init
-
Edit
Vagrantfile
.$ vi Vagrantfile
-
Creates and configures guest machines according to your
Vagrantfile
.$ vagrant up
-
Visit http://wordpress.local.
- Clone this git repository on your local machine.
- Run
bundle install
to fetch all dependencies.
There is automated tests using Serverspec.
The tests files are in the spec/
directory.
Before running the serverspec tests, you'll need some dependencies.
$ bundle install --path=vendor/bundle
Then to run the tests, just execute following.
$ bundle exec rake spec