This guide assumes the following points:
- You are using a debian-based operating system
- You would like to deploy your application using RVM, Capistrano and Bundler
- Your application source code is hosted on a remote GIT repository
git new release # creates a new release branch (release/X.Y.Z) from the latest tagged version incrementing minor version from upstream's integration branch | |
git new release --bump major # creates a new release branch (release/X.Y.Z) from the latest tagged version incrementing major version | |
git new feature branch-name # creates a new feature branch (feature/branch-name) from upstream's integration branch | |
git new hotfix branch-name # creates a new hotfix branch (hotfix/branch-name) from upstream's stable branch |
$(document).ready(function () { | |
var TableParser = function () { | |
function isEmpty(line) { | |
var empty = true; | |
$.each(line, function(_, value) { | |
if (value.trim()) { | |
empty = false; | |
return false; | |
} |
sudo dscl . -create ~ UserShell `which fish` |
#!/bin/bash | |
# http://winstonyw.com/2014/10/24/setting_up_ruby_on_rails_on_digital_ocean/ | |
# https://github.com/mattdbridges/capistrano-recipes/blob/master/postgresql.rb | |
set -euo pipefail | |
LOCALE="en_US.utf8" | |
TIMEZONE="Europe/Madrid" | |
ADMIN_USER="admin" |
#!/usr/bin/env bash -e | |
set -euo pipefail | |
shopt -s globstar | |
shopt -s extglob | |
export RUBY_HEAP_MIN_SLOTS=2000000 | |
export RUBY_HEAP_FREE_MIN=20000 | |
export RUBY_GC_MALLOC_LIMIT=100000000 |
dscacheutil -flushcache |
# -*- encoding : utf-8 -*- | |
# Because Capybara.app gets run by Thin in a separate thread, errors raised in | |
# the application during request_specs get hidden and just show up in the | |
# selenium-controller browser as 500 errors with no extra info. This module | |
# helps us dig into those errors. | |
module RequestSpecs | |
module ExceptionHelper | |
@@last_exception = nil |
#!/usr/bin/env bash | |
set -xeuf -o pipefail | |
export DEPLOY_PATH="/home/deploy/mindo.io" | |
export CURRENT_PATH="$DEPLOY_PATH/current" | |
export REPO_PATH="$DEPLOY_PATH/repo" | |
export SHARED_PATH="$DEPLOY_PATH/shared" | |
export RELEASE_PATH="$DEPLOY_PATH/releases/$(date +%s)" |
#!/usr/bin/env ruby | |
# Requires imagesnap from https://github.com/alexwilliamsca/imagesnap (brew install imagesnap) | |
# To assemble the video use http://www.dayofthenewdan.com/projects/tlassemble | |
file="~/.gitshots/#{Time.now.to_i}.jpg" | |
puts "Taking capture into #{file}!" | |
system "imagesnap -q -w 3 #{file}" | |
exit 0 |
This guide assumes the following points: