wordpress-git
This is a simple skeleton repo for managing a WordPress site using: wp-cli, git, composer
Getting Started
- Clone this repo within the local web root folder (eg through GitHub Desktop/Atom.io and MAMP).
- NB Rename the cloned folder (wordpress-git) to something more friendly (eg site-name).
- Run
wp-install.sh
to automatically install within this folder wordpress and any other required plugins/themes. - 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 !