WordPress stack for standalone websites development.
It consists of the following components:
- WordPress 4.3.1
- Roots Bedrock 1.4.5
- Roots Bedrock-Capistrano (commit 01a2657)
- PHP 5.5
- Composer - for PHP dependencies
- Vagrant - for a local environment
- (Optional) Ruby >= 1.9
- (Optional) capistrano (>3.1.0) and capistrano-composer Ruby gems (can be installed using Bundler)
- Composer as a dependency manager
- WordPress code in a separate directory (managed by Composer as a dependency)
- WordPress themes and plugins managed by Composer as a dependency
- Vagrant for complete local environment
- Capistrano as a deployer
- Clone this repo.
- Run
build.sh
script to adjust an IP address and a domain for your local environment. - (Optional) Define your stage environments (eg. staging, production) in
config/deploy
and set correct repo URL and application name inconfig/deploy.rb
- Go to the project folder, type
vagrant up
and wait for Vagrant to setup your local environment. - Type
vagrant ssh
and then download all the dependencies from Vagrant machine:cd /vagrant && composer install
. - Now you can start developing your theme in
web/app/themes
:) If you want, you can install Sage theme by Roots using this script:
wget https://github.com/roots/sage/archive/master.zip && unzip master.zip -d web/app/themes && mv web/app/themes/sage-master web/app/themes/base-theme && rm master.zip
- Update your
/etc/hosts
file with same IP address and domain which you set in the second step, or use the default:192.168.30.11 wordpress.local
. - Access your WordPress installation using following URLs:
- http://wordpress.local - site
- http://wordpress.local/wp/wp-admin - admin panel