Skip to content

A Vagrant/Librarian/Chef Solo setup to run WordPress locally for development.

Notifications You must be signed in to change notification settings

dailyemerald/vagrant-wordpress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started

If you haven't, install VirtualBox.

Then:

bash init.sh

OR the hard way (this is the contents of the init.sh script):

bundle	
librarian-chef install
vagrant up
  • bundle pulls the gems. knife-solo, librarian, vagrant specifically.
  • librarian-chef install pulls the cookbooks from opscode.
  • vagrant up runs the recipes fetched by Librarian and boots the VM. It also sets some config stuff, like setting the root mysql password to 'helloworld'

Connecting to mysql from the host machine

Is probably something like this:

mysql --port=3306 --protocol=TCP -u root -h 127.0.0.1 -p

Restoring a DB backup might look like:

mysql --port=3306 --protocol=TCP -u root -h 127.0.0.1 -p wordpress < db.sql

What's left to do

  • Auto-restore a database dump. We keep DB snapshots in S3, so this is probably a s3cmd command and some minor plumbing.

  • Lots of other things.

About

A Vagrant/Librarian/Chef Solo setup to run WordPress locally for development.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published