Skip to content

zine-inc/vacw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VACW (vagrant-ansible-centos-wordpress)

This is a Vagrant configuration designed for development of WordPress plugins, themes, or websites.

Preparations in advance

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 on homebrew
$ 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 on homebrew
$ 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 on pip
  • 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

Getting Started

  1. Install VirtualBox.

    from https://www.virtualbox.org/wiki/Downloads

  2. Install Vagrant.

    from http://www.vagrantup.com/

    $ vagrant -v # e.g. Vagrant 1.7.2
  3. Install Rake

    $ gem install rake
  4. Clone this repository.

    $ git clone [email protected]:wata/vacw.git
  5. Change into the new directory.

    $ cd vacw
  6. Initial setup.

    $ rake init
  7. Edit Vagrantfile.

    $ vi Vagrantfile
  8. Creates and configures guest machines according to your Vagrantfile.

    $ vagrant up
  9. Visit http://wordpress.local.

Contribute

Setting up

  1. Clone this git repository on your local machine.
  2. Run bundle install to fetch all dependencies.

Running and writing tests

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

About

VACW (vagrant-ansible-centos-wordpress)

Resources

Stars

Watchers

Forks

Packages

No packages published