Skip to content

A simple skeleton repo for managing a WordPress site using: wp-cli, git, composer

Notifications You must be signed in to change notification settings

Raruto/wordpress-git

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wordpress-git

This is a simple skeleton repo for managing a WordPress site using: wp-cli, git, composer Wordpress + Git + Composer

Getting Started

  1. Clone this repo within the local web root folder (eg through GitHub Desktop/Atom.io and MAMP).
  2. NB Rename the cloned folder (wordpress-git) to something more friendly (eg site-name).
  3. Within this folder, now you can alternately run:
    1. wp core download to install wordpress (or even better wp core install)
      composer install to install any required plugin/theme (composer update it's also fine).
    2. one-click-install.sh to perform all these things (and more) automatically.
  4. Happy coding...

remember to...

  • Add to the composer.json file all of the wordpress plugins and themes (eg from wpackagist) that might be required in this wordpress installation.
  • Add to the .gitignore file all of your custom plugins/themes that you want to keep under git control (add !wp-content/plugins/my-plugin-name for a custom plugin and !wp-content/themes/my-theme-name for a custom theme).

Requirements

localhost: wp-cli, git, composer (and wordpress..)

live server: ftp access or even better GitHubUpdater CI (and wordpress..)


Useful Tips