Skip to content

Instantly share code, notes, and snippets.

@kellenmace
Created May 18, 2015 15:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kellenmace/96711cc329e589fdc444 to your computer and use it in GitHub Desktop.
Save kellenmace/96711cc329e589fdc444 to your computer and use it in GitHub Desktop.
Getting started on an existing project:
boot up vvv
get database dump file from DevOps engineer - Jason DeWitt
use site wizard to create a new site using this flag:
-db followed by the local database file to import (or import via Sequel Pro later on)
clone the repo into the appropriate directory
if you want to download the media from the live site, add this code to the site’s vvv config file (vvv-local > config > nginx-config > sites > nameoflocalsite.conf):
---------------------------------------
Directives to send expires headers and turn off 404 error logging.
location ~* \.(js|css|png|jpg|jpeg|gif|ico|mp3|mov|tif|tiff|swf|txt|html)$ {
expires 24h;
log_not_found off;
try_files $uri $uri/ @production;
}
location @production {
resolver 8.8.8.8;
# replace www.livesite.com with the production site URL
proxy_pass https://yourdomain.com/$uri;
}
---------------------------------------
create a new feature branch
modify theme/plugin files, making commits along the way
push changes to remote repo
request code review when feature is near completion
When feature is finished, merge into both development and master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment