Forked from VagrantPress (http://vagrantpress.org/) this project is a packaged development environment for Wordpress.
- Latest version of Wordpress
- Grunt.js / Bower
- Bones - Wordpress theme boilerplate
- PHP5
- Mysql
Clone this project, and from the root of this project start the vm with the following command
vagrant up
This creates the VM with the default virtualbox provider, you can specify the provider (such as VMWare Fusion 5) with the following
vagrant up --provider vmware_fusion
The VM will start up and in the process will pull and install the latest version of Wordpress, and create the symlinks nessecary to run the project. Once complete you can view the project on
http://localhost:8080
You can ignore the /wordpress directory as nothing in here should be edited. All development files are contained in /source where you will find plugins, themes and wp-config. The contents of /source are symlinked to the /wordpress directory.
Bones has been included as a base theme and Grunt tasks have been set up to compile scss files used by Bones. To run these enter the vm with the following command
vagrant ssh
cd /vagrant
Now you are in the vagrant source directory in the VM. You can run the following tasks
grunt watch
This watches the /source directory for any changes (saving layout files for example) and runs the tasks required. For now this only runs the sass compile task, but more might be added.
grunt build
This task will copy the whole source into the /build folder, combining the wordpress source and the project source (themes, plugins, config). This will also dump the current database into /build/database/latest.sql
grunt import
This task will import the contents of /build/database/latest.sql into the database. You can run this when there is a new version of the database in the repository
- Default Wordpress login is username: 'admin' and password: 'vagrant'
- To login to anything in the VM the password should be 'vagrant' (MySQL for example)