This is a simple skeleton repo for managing a WordPress site using: wp-cli, git, composer
- 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).
- Within this folder, now you can alternately run:
wp core download
to install wordpress (or even betterwp core install
)composer install
to install any required plugin/theme (composer update
it's also fine).one-click-install.sh
to perform all these things (and more) automatically.
- Happy coding...
- 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).
localhost: wp-cli, git, composer (and wordpress..)
live server: ftp access or even better GitHubUpdater CI (and wordpress..)