WPEngine doesn't support Composer, Gulp or Bower. This bash script will move the app/
folder back to 'wp-content/'. It will update the root .gitignore (and clear the cache) so all files are ignored, except those in the wp-content/
folder. It will then remove the .gitignore in the theme so any compiled assets are included. Finally, it will push up the branch to WPEngine (replacing capistrano). This is all completed on a separate WPEngine branch which is created initially and deleted after completion.
- Edit the name of the theme in
wpengine.sh
- Ensure you use develop branch for staging, master for production locally
- Ensure you use staging, production remotes for WPEngine
- Run
sh wpengine.sh
followed bystaging
orproduction
. E.gsh wpengine.sh staging
- Remove output
- Add helpful messages
- Further error checking