2017 © Pedro Peláez
 

library wordpress-skeleton

WordPress skeleton utilizing Vagrant, Composer, _s, & Wordpress.

image

ericclemmons/wordpress-skeleton

WordPress skeleton utilizing Vagrant, Composer, _s, & Wordpress.

  • Tuesday, November 5, 2013
  • by ericclemmons
  • Repository
  • 2 Watchers
  • 11 Stars
  • 6 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

[DEPRECATED] WordPress Skeleton

USE https://github.com/genesis/wordpress/ INSTEAD! IT ROCKS!, (*1)

Opinionated WordPress starter template that sets up local development & remote deployment via a simple configuration & command-line tools., (*2)

Features

  • Simple installation & configuration via Composer & an interactive console
  • Local development environment via Vagrant
  • Simple local URLs like http://local.mysite.com/ via Vagrant Hostmaster
  • Local & remote deployment via Capistrano
  • Simplified theme development via _s and the WordPress [Theme Unit Test][8]

Installation

Creating a New Theme:, (*3)

$ cd path/to/sites
$ git clone git://github.com/ericclemmons/wordpress-skeleton.git my-theme

Adding to an Existing Theme:, (*4)

$ cd path/to/existing/theme
$ git remote add skeleton git://github.com/ericclemmons/wordpress-skeleton.git
$ git fetch skeleton && git merge --squash skeleton/master
  • Download & Install Vagrant
  • Install Vagrant Hostmaster: $ sudo gem install vagrant-hostmaster
  • Capistrano: $ sudo gem install capistrano capistrano-ext colored
  • Composer: $ curl -s https://getcomposer.org/installer | php
  • Composer depependencies: $ php composer.phar install

Configure your skeleton.yml

This is where all WordPress plugins, admin logins & server information is stored., (*5)

$ ./bin/skeleton configure

(Re)Generating Your WordPress Skeleton

This is done automatically whenever you configure your skeleton.yml, but should be ran if you make any changes to it manually:, (*6)

$ ./bin/skeleton generate

Local Development

$ vagrant up

The first time you run this, you have to perform a cold deployment to setup the folder structure & database:, (*7)

$ cap local deploy:cold

After doing it once, you can just do normal deployments, which will only update the theme:, (*8)

$ cap local deploy

Open WordPress in your browser:, (*9)

$ ./skeleton open

Now you can make changes to /src and refresh!, (*10)

You can always view skeleton.yml or run ./skeleton info for WordPress Admin credentials., (*11)

Useful Commands

  • ./skeleton will list all possible commands you can run to affect your local skeleton's configuration. These commands are also ran remotely via cap to perform tasks on the server., (*12)

  • cap -T will list all deployment & WordPress-related commands that can be used with each environment. (You will use local the most), (*13)

The Versions

05/11 2013

dev-master

9999999-dev

WordPress skeleton utilizing Vagrant, Composer, _s, & Wordpress.

  Sources   Download

The Requires

  • php >=5.3.3
  • wordpress/wordpress 3.4.2
  • automattic/_s dev-master
  • ericclemmons/wordpress-generator dev-master
  • opscode-cookbooks/apache2 dev-master
  • opscode-cookbooks/apt dev-master
  • opscode-cookbooks/mysql dev-master
  • opscode-cookbooks/openssl dev-master
  • opscode-cookbooks/php dev-master

 

by Eric Clemmons