Use Vagrant to develop your WordPress plugins, themes and websites.
When you bring the virtual machine up, you will have a Fedora based server running WordPress on the IP address specified in the Vagrantfile
. The website can be accessed through the URL defined in the HOME_URL variable that appearis in vagrant-bootstrap.sh
.
If you plan to write unit tests (and you should), you would like to know that the server comes with PHPUnit, Phake and XDebug installed and ready to use. There are phpunit.xml
and .travis.yml
files already included in the project. All you have to do is write some tests using WordPress testing framework.
The server also has WP-CLI installed to facilitate WordPress.
-
Get a copy of this repository:
git clone https://github.com/wvega/vagrant-wordpress.git
-
Update the name of the base box in the
Vagrantfile
. The box is expected to be based on Fedora. The current version was tested in Fedora 19. -
Change the name of the blog, admin email address and website url in
vagrant-bootstrap.sh
file. -
Start your virtual machine:
vagrant up
If you are working on a whole WordPress website and you want to keep all files under version control, you may want to remove wordpress
directory from .gitignore
.