Skip to content

wemash/MashPress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MashPress VWD

MashPress VWD stands for Vagrant Wordpress Development and is loosely based off the Vagrant Drupal Development.

Assumptions

  • You'll need to have virtualbox and vagrant installed.
  • Homebrew:
    • brew install virtualbox and brew install vagrant
  • Make sure you pull the Wordpress submodule with git submodule init and git submodule update

Getting Started

  1. Fork or clone the repository.
  2. Update the submodules using git submodule init and git submodule update
    • This will clone WordPress into the www/wp directory.
  3. Run vagrant up and cross your fingers.
    • You'll need to type in your password when vagrant tries to mount the nfs directories

Useful Vagrant Commands

  • vagrant up Bring up the virtual machine.
  • vagrant provision Provision the virtual machine.
    • This is useful if the inital install fails for whatever reason and you need to run it again.
  • vagrant suspend Stop the VM temporarily.
  • vagrant halt Shut down the VM.
  • vagrant destroy Destroy the VM and delete the vhd.

Vagrant Server Details

  • Vagrant will mount the www/ directory into the virtual machine's var/www
  • var/www/wp is 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.100 and can be configured in config.json

MySQL Server

  • Username: root
  • Password: root

Available Software

  • phpmyadmin is installed and available at http://localhost:8080/phpmyadmin
  • webgrind is installed and available at http://localhost:8080/webgrind

WordPress Skelton

The WordPress Skelton is used to better organize the WordPress directory. The uploads symlink has been removed because why not commit your uploads directory?

Questions & Answers

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!

About

Vagrant Wordpress development, oh yeah!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages