Skip to content

It is a scaffolding that should be used for each new WordPress project

License

Notifications You must be signed in to change notification settings

CodeTiburon/wp-box

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Previous version of WP box is available as release v1.0.0

Review changes CHANGELOG

Upcoming improvements TODO

WordPress Application Box

This is a scaffolding that should be used for each new WordPress project in our company. This box consists of:

  • Vagrant
  • Ubuntu 14.04 Trusty
  • Chef Solo
  • WordPress (latest version)

Server software:

  • Apache
  • PHP
  • MySQL

It automatically installs additional tools:

WordPress plugins:

Vagrant plugins

  • vagrant-bindfs for Linux/OSX hosts.
  • vagrant-omnibus is a vagrant plugin that ensures the desired version of Chef is installed via the platform-specific Omnibus packages.
  • To automatically configure the host file on your guest and host (Linux only) machines it is recommended to install 'vagrant-hostmanager' plugin:
    vagrant plugin install vagrant-hostmanager
  • vagrant-vbguest is a Vagrant plugin which automatically installs the host's VirtualBox Guest Additions on the guest system.

WP-BOX Installation

  1. Clone the repository. Please note: chef_gem and rvm cookbooks are added to main repository as submodules. Run git submodule update --init to clone these cookbooks.
  2. Install on of the following
    1. If you want to use 'rsync' synchronization on Linux systems
      Ubuntu: apt-get -y install rsync
      CentOS: yum -y install rsync
      Then you should set SYNC_TYPE to 'rsync' in the Vagrantfile
    2. If you want to use 'nfs' synchronization on Linux systems
      Ubuntu: apt-get -y install nfs-kernel-server nfs-common
      CentOS: yum -y install nfs-utils nfs-utils-lib
      Then you should set SYNC_TYPE to 'nfs' in the Vagrantfile

Set additional configurations in the top of the Vagrantfile (like HOSTNAME, TABLE_PREFIX etc.) Later this configurations will be moved to the separate config.yml.dist file.

Now run vagrant up:

  • if there is no any wordpress installation in the ./wordpress directory, the latest wordpress version will be installed;
  • if there is a ./worpdress/dump.sql file it will be automatically imported to the database during vagrant VM installation.

Defaults

  • Domain: wordpress.local
  • IP: 192.168.33.10
  • Syncronization type: nfs (for Linux only)
  • DB name: wordpress
  • DB user: root
  • DB password: root
  • Table prefix: wp_

License

WordPress Application Box is available under the MIT license.

More Info

Have a question? Please open an issue!

Copyright © 2014-2016 CodeTiburon

About

It is a scaffolding that should be used for each new WordPress project

Resources

License

Stars

Watchers

Forks

Packages

No packages published