MashPress VWD stands for Vagrant Wordpress Development and is loosely based off the Vagrant Drupal Development.
- You'll need to have virtualbox and vagrant installed.
- Homebrew:
brew install virtualboxandbrew install vagrant
- Make sure you pull the Wordpress submodule with
git submodule initandgit submodule update
- Fork or clone the repository.
- Update the submodules using
git submodule initandgit submodule update- This will clone WordPress into the
www/wpdirectory.
- This will clone WordPress into the
- Run
vagrant upand cross your fingers.- You'll need to type in your password when vagrant tries to mount the nfs directories
vagrant upBring up the virtual machine.vagrant provisionProvision the virtual machine.- This is useful if the inital install fails for whatever reason and you need to run it again.
vagrant suspendStop the VM temporarily.vagrant haltShut down the VM.vagrant destroyDestroy the VM and delete the vhd.
- Vagrant will mount the
www/directory into the virtual machine'svar/www var/www/wpis the WordPress submodule location. Again make sure you import it.- Vagrant will attempt to forward localhost port 8080 to the virtual machine web server. If this port is not available, vagrant will search for a free one.
- The default server location is
192.168.100.100and can be configured inconfig.json
- Username:
root - Password:
root
- phpmyadmin is installed and available at
http://localhost:8080/phpmyadmin - webgrind is installed and available at
http://localhost:8080/webgrind
The WordPress Skelton is used to better organize the WordPress directory. The uploads symlink has been removed because why not commit your uploads directory?
Q: How do I remove the /wp from the url?
A: If you would like to remove the /wp from the url then simply change the site url config option in the WordPress admin panel.
Q: I'm getting a php error when trying to view the site!
A: Chances are that you forgot to run git submodule init and git submodule update when cloning the repository. You need WordPress!