Skip to content

Instantly share code, notes, and snippets.

@seanski
seanski / release
Last active January 30, 2017 20:35
Here is a little script that I wrote to manage capistrano deploys. It checks for asset changes and precompiles assets, if needed. It also looks for schema changes and will run migrations if there are any changes. It uses GitFlow for release creation.
#!/usr/bin/env ruby
require 'date'
require 'git'
class Releaser
attr_accessor :app_path, :repo, :skip_deploy, :version, :version_file
def initialize(app_path, version, version_file, skip_deploy=false)
raise ArgumentError.new('First argument must be version number in Major, Minor, Patch format, ex. 11.222.324') unless version.valid?
@seanski
seanski / gist:1215775
Created September 14, 2011 03:13
Error install nginx with Homebrew
==> Downloading http://nginx.org/download/nginx-1.0.6.tar.gz
File already downloaded in /Users/sean/Library/Caches/Homebrew
/usr/bin/tar xf /Users/sean/Library/Caches/Homebrew/nginx-1.0.6.tar.gz
==> Patching
/usr/bin/patch -f -p1 -i 001-homebrew.diff
patching file auto/lib/pcre/conf
patching file conf/nginx.conf
==> ./configure --prefix=/Users/sean/homebrew/Cellar/nginx/1.0.6 --with-http_ssl_module --with-pcre --conf-path=/Users/sean/homebrew/etc/nginx/nginx.conf --pid-path=/Users/sean/homebrew/var/run/nginx.pid --lock-path=/Users/sean/homebrew/var/nginx/nginx.lock
./configure --prefix=/Users/sean/homebrew/Cellar/nginx/1.0.6 --with-http_ssl_module --with-pcre --conf-path=/Users/sean/homebrew/etc/nginx/nginx.conf --pid-path=/Users/sean/homebrew/var/run/nginx.pid --lock-path=/Users/sean/homebrew/var/nginx/nginx.lock
checking for OS