Skip to content

Instantly share code, notes, and snippets.

@brettmax
brettmax / deploy.rb
Created May 15, 2015 07:49
Capistrano Bedrock Sage deploy.rb
set :application, 'bobs-site.brett.com'
set :repo_url, '[email protected]:brett/bobs-site.git'
set :theme_name, 'bobssite'
# Branch options
# Prompts for the branch name (defaults to current branch)
#ask :branch, -> { `git rev-parse --abbrev-ref HEAD`.chomp }
# Hardcodes branch to always be master
# This could be overridden in a stage config file
@brettmax
brettmax / gist:5823f6707509ebcefbb7
Last active August 29, 2015 14:21
Capistrano local gulp issue
PS D:\Projects\Clients\Bob\bobs-site\src> bundle exec cap staging assets:compile --trace
DL is deprecated, please use Fiddle
DL is deprecated, please use Fiddle
** Invoke staging (first_time)
** Execute staging
** Invoke load:defaults (first_time)
** Execute load:defaults
** Invoke assets:compile (first_time)
** Execute assets:compile
DEBUG[4221bec9] Running /usr/bin/env if test ! -d D:/Projects/Clients/Bob/bobs-site/src/web/app/themes/bobssite; then echo "Directory does not exist 'D:/Projects/Clients/Bob/bobs-site/src/web/app/themes/bobssite'" 1>&2; false; fi on localhost
@brettmax
brettmax / gist:292239a603a2b714b79b
Created April 3, 2015 01:59
Sage bower.json bootstrap
{
"name": "sage",
"homepage": "https://roots.io/sage/",
"authors": [
"Ben Word <[email protected]>"
],
"license": "MIT",
"private": true,
"dependencies": {
"modernizr": "2.8.2",
@brettmax
brettmax / Custom plugin composer.json
Created March 31, 2015 08:15
Nested custom plugin composer.json file which includes redux as a dependency
{
"name": "brettlefty/additional-options",
"description": "Adds additional custom dashboard configuration options",
"type": "wordpress-plugin",
"keywords": ["wordpress", "redux", "additional", "options", "configuration", "settings"],
"license": "GPL",
"require": {
"composer/installers": "1.0.*@dev",
"redux-framework/redux-framework": "dev-master"
},
@brettmax
brettmax / Bedrock root composer.json
Created March 31, 2015 08:02
http://roots.io Bedrock root composer.json file
{
"name": "roots/bedrock",
"type": "project",
"license": "MIT",
"description": "A modern WordPress stack",
"homepage": "http://roots.io/wordpress-stack/",
"authors": [{
"name": "Scott Walkinshaww",
"email": "[email protected]",
"homepage": "https://github.com/swalkinshaw"