layout | title | og_url | og_image | description |
---|---|---|---|---|
default |
VCCW - A WordPress development environment. |
VCCW is a Vagrant based development environment for WordPress plugins, themes, or websites. |
VCCW v3 is now available!
It is no longer supported. Please visit v3.
This is a Vagrant configuration designed for development of WordPress plugins, themes, or websites.
VCCW includes customizable variables for setting the WordPress version (or beta release), language, hostname, subdirectory, admin credentials, default plugins, default theme, multisite, SSL and other options. These variables give you a lot of flexibility in tailoring your development environment to your specific needs.
- CentOS 6.5
- Subversion
- Git
- jq
- WordPress latest
- PHP 5.4
- MySQL 5.5
- Apache
- Node.js
- Ruby 2.1
- Vagrant 1.5 or later
- VirtualBox 4.3 or later
{{ site.scroll_to_top }}
$ vagrant plugin install vagrant-hostsupdater
Windows does not allow to change hosts
files. Please add vccw.dev 192.168.33.10
by yourself!
$ vagrant box add miya0001/vccw
Download.zip
$ cd vccw-x.x.x
$ vagrant up
Visit http://vccw.dev/ or http://192.168.33.10/
{{ site.scroll_to_top }}
This tool installs a WordPress environment with these settings by default.
- Default user
- Username:
admin
- Password:
admin
- Username:
- MySQL Host:
127.0.0.1
- Username:
wordpress
orroot
- Password:
wordpress
- Port:
3306
- Host:
vccw.dev
or192.168.33.10
- Username:
vagrant
- Password:
vagrant
- Port:
22
You can login virtual machine with vagrant ssh
.
{{ site.scroll_to_top }}
VCCW is configured for those developing WordPress plugins, themes or websites. It includes many customizable variables for setting the WordPress version (or beta release), language, hostname, subdirectory, admin credentials, default plugins, default theme, multisite, SSL and other options. These variables give you a lot of flexibility in tailoring your development environment to your specific needs.
Copy provision/default.yml
to site.yml
like following.
$ cp provision/default.yml site.yml
Then edit the site.yml
and run vagrant up
.
Or place the site.yml
and put variables like following.
hostname: example.com
lang: ja
plugins:
- contact-form-7
- jetpack
Then just run vagrant up
.
Put php version to site.yml
like following.
php_version: 5.6.9
Then run vagrant up
or vagrant provision
.
See https://github.com/php-build/php-build/tree/master/share/php-build/definitions.
VCCW has a series of global parameters which work with all virtual machines.
They can be specified ~/.vccw/config.yml
like following.
memory: 1024
cpus: 2
lang: ja
theme_unit_test: true
{{ site.scroll_to_top }}
You can place shell scripts, so it will run at pre/post provisioning.
provision-pre.sh
- Run before chef provisioning.provision-post.sh
- Run after chef provisioning.
provision-post.sh
- It will run after provisioning.
#!/usr/bin/env bash
set -ex
/usr/local/bin/wp --path=/var/www/wordpress plugin install contact-form-7 --activate
This example script will install and activate plugin "Contact Form 7" by WP-CLI.
{{ site.scroll_to_top }}
MailCathcer re-routes all WordPress emails to Mailcatcher.
Run following command.
$ curl -L https://raw.githubusercontent.com/vccw-team/activate-mailcatcher/master/setup.sh | bash
Then visit http://vccw.dev:1080/.
{{ site.scroll_to_top }}
https://github.com/vccw-team/vccw/releases
{{ site.scroll_to_top }}