Skip to content

Instantly share code, notes, and snippets.

zblut@zblut-benchmark smart_api (ey_appcloud) % ey deploy -a smart_api -e testdb -r ey_appcloud
Connecting to the server...
Beginning deploy for 'smart_api' in 'testdb' on server...
~> Deploying revision 8bbe781... Debugging why deploy is now failing and loosing current symlink.
~> Loading deployment task overrides from /data/smart_api/shared/cached-copy/config/eydeploy.rb
~> Pushing code to all servers
rsync: failed to set times on "/data/smart_api/shared/cached-copy/tmp": Operation not permitted (1)
rsync: recv_generator: mkdir "/data/smart_api/shared/cached-copy/tmp/cache" failed: Permission denied (13)
*** Skipping any contents from this failed directory ***
rsync: recv_generator: mkdir "/data/smart_api/shared/cached-copy/tmp/sessions" failed: Permission denied (13)
# get the apps
#ey environments --all | grep -E "^\w"
# get the environments
#ey environments --all | grep -E "^\s+\w" | awk '{print $1}'
_ey_does_ssh_list_need_generating () {
if [ ! -f ~/.ey_ssh_lists ]; then return 0;
else
yesterday=$(date +%s -d yesterday)
@zev
zev / gist:199526
Created October 2, 2009 07:18
MultiProcess TokyoCabinet Reads
#!/usr/bin/ruby
require 'yaml'
require 'benchmark'
require 'rubygems'
require 'rufus/tokyo'
$cab_file = "cab_#{Process.pid}.tch"
pcount = (ARGV[0] || 2).to_i
require 'capistrano/recipes/deploy/strategy/remote'
module Capistrano
module Deploy
module Strategy
# Implements the deployment strategy that keeps a checkout of
# the source code on each remote server. Each deploy simply updates the
# checkout
class GitSync < Remote
$:.unshift('~/rufus/rufus-tokyo/lib')
require 'benchmark'
require 'rubygems'
require 'faker'
require 'date'
#
# the data
#