- Setup local wordpress install & local wordpress database
- Create production database from mysql wizard (make new user password and db)
- Setup grunt files from the wordpress root in the console (rememeber you can drag and drop a folder onto the console and hit enter):
$ npm init& Fill in relevant details (you can just hit enter a few times)$ npm install grunt --save-dev- install grunt into node_modules folder$ npm install grunt-wordpress-deploy --save-dev- install grunt wordpress deploy into node_modules folder- Create gruntfile.js in root & copy and paste below gruntfile.js into yours.
- Fill in the local and production information
- Remember that the two
path:lines need to have a trailing slash/(lines 37 & 46)
- Remember that the two
grunt push_files --target=production