Skip to content

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. Run wp-install.sh to automatically install within this folder wordpress and any other required plugins/themes.
  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 (generate one from a live site through wp-devops).
  • 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..)


more info at wordpress-git/wiki


Contribution

You can fork it and submit your change with a pull request !