Skip to content

Instantly share code, notes, and snippets.

@seanwash
seanwash / README.md
Last active August 29, 2015 14:15
Wordpress Deploy via Grunt
  1. Setup local wordpress install & local wordpress database
  2. Create production database from mysql wizard (make new user password and db)
  3. 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)
  1. grunt push_files --target=production