Skip to content

Instantly share code, notes, and snippets.

View paulstraw's full-sized avatar

Paul Straw paulstraw

View GitHub Profile
@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
@140bytes
140bytes / LICENSE.txt
Created May 9, 2011 16:13
140byt.es -- Click ↑↑ fork ↑↑ to play!
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE