ericclemmons/wordpress-skeleton

There is no license information available for the latest version (dev-master) of this package.

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

dev-master 2013-11-05 16:58 UTC

This package is not auto-updated.

Last update: 2020-01-10 14:56:31 UTC


README

USE https://github.com/genesis/wordpress/ INSTEAD! IT ROCKS!

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

Features

Installation

Creating a New Theme:

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

Adding to an Existing Theme:

$ 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.

$ ./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:

$ ./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:

$ cap local deploy:cold

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

$ cap local deploy

Open WordPress in your browser:

$ ./skeleton open

Now you can make changes to /src and refresh!

You can always view skeleton.yml or run ./skeleton info for WordPress Admin credentials.

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.

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