This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set :whenever_environment, defer { stage } | |
require 'capistrano/ext/multistage' | |
require 'bundler/capistrano' | |
require 'yaml' | |
set :whenever_command, "bundle exec whenever" | |
require 'whenever/capistrano' | |
$:.unshift(File.expand_path('./lib', ENV['rvm_path'])) | |
require "rvm" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@stage01 /]# ps auxw | grep -i ruby | |
root 5920 0.0 0.9 1077876 29448 ? Sl Jul12 5:29 /usr/local/rvm/rubies/ruby-1.9.2-p180/bin/ruby /usr/local/rvm/gems/ruby-1.9.2-p180/bin/god -c /etc/god.conf.rb | |
root 5976 0.0 0.0 103284 868 pts/0 S+ 14:38 0:00 grep -i ruby | |
deploy 27771 0.0 4.1 418340 131304 ? Ssl Jul16 2:49 ruby /home/deploy/rails_apps/swipedeals/shared/bundle/ruby/1.9.1/bin/rake -f /home/deploy/rails_apps/swipedeals/current/Rakefile resque:work | |
deploy 27777 0.0 4.1 418348 131312 ? Ssl Jul16 2:43 ruby /home/deploy/rails_apps/swipedeals/shared/bundle/ruby/1.9.1/bin/rake -f /home/deploy/rails_apps/swipedeals/current/Rakefile resque:work | |
[root@stage01 /]# ps auxw | grep -i rake | |
root 7442 0.0 0.0 103284 868 pts/0 S+ 14:39 0:00 grep -i rake | |
deploy 27771 0.0 4.1 418340 131304 ? Ssl Jul16 2:49 ruby /home/deploy/rails_apps/swipedeals/shared/bundle/ruby/1.9.1/bin/rake -f /home/deploy/rails_apps/swipedeals/current/Rakefile resq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[deploy@app01 cmf]$ RAILS_ENV=production bundle exec rake init_system | |
MOPED: 67.214.217.42:27017 COMMAND database=admin command={:ismaster=>1} (1.3943ms) | |
MOPED: 208.85.148.140:27017 COMMAND database=admin command={:ismaster=>1} (1.2040ms) | |
MOPED: 67.214.215.188:27017 COMMAND database=admin command={:ismaster=>1} (1.1649ms) | |
MOPED: 67.214.215.188:27017 COMMAND database=cmf_production command={:count=>:users, :query=>{}} (0.5960ms) | |
MOPED: 67.214.217.42:27017 DELETE database=cmf_production collection=users selector={} flags=[] (0.0770ms) | |
MOPED: 67.214.215.188:27017 COMMAND database=cmf_production command={:count=>:seniors, :query=>{}} (0.4258ms) | |
MOPED: 67.214.217.42:27017 DELETE database=cmf_production collection=seniors selector={} flags=[] (0.0572ms) | |
MOPED: 208.85.148.140:27017 COMMAND database=cmf_production command={:count=>:mboxes, :query=>{}} (0.5140ms) | |
MOPED: 67.214.217.42:27017 DELETE database=cmf_production collection=mboxes selector={} fla |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@greenfield-SL6 /]# traceroute 199.91.168.103 | |
traceroute to 199.91.168.103 (199.91.168.103), 30 hops max, 60 byte packets | |
1 ds1055.blueboxgrid.com (67.214.212.141) 0.039 ms 0.012 ms * | |
2 cr02-v10.tkwl01.bbgrp.net (208.85.151.170) 0.318 ms 0.383 ms 0.442 ms | |
3 cr1-tuk-t8-2.bb.spectrumnet.us (216.243.26.133) 0.499 ms 0.483 ms 0.527 ms | |
4 six.above.net (206.81.80.19) 0.450 ms 0.482 ms 0.475 ms | |
5 xe-1-0-0.mpr2.sea1.us.above.net (64.125.31.14) 0.739 ms 0.767 ms 0.808 ms | |
6 xe-1-2-0.cr2.ord2.us.above.net (64.125.31.2) 53.117 ms 53.059 ms 53.038 ms | |
7 xe-2-0-0.cr2.lga5.us.above.net (64.125.24.29) 70.246 ms 70.228 ms 70.218 ms | |
8 xe-3-2-0.cr2.dca2.us.above.net (64.125.26.109) 74.532 ms 74.528 ms 74.518 ms |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if failed host 127.0.0.1 port 6379 | |
send "SET MONIT-TEST value\r\n" expect "OK" | |
send "EXISTS MONIT-TEST\r\n" expect ":1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/unicorn.rb | |
worker_processes 4 | |
working_directory "/home/deploy/rails_apps/$app/current" | |
listen "/tmp/unicorn.sock", :backlog => 64 | |
timeout 30 | |
pid "/home/deploy/rails_apps/$app/shared/pids/unicorn.pid" | |
stderr_path "/home/deploy/rails_apps/$app/shared/log/unicorn.stderr.log" | |
stdout_path "/home/deploy/rails_apps/$app/shared/log/unicorn.stdout.log" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# User specific environment and startup programs | |
PATH=$PATH:$HOME/.local/bin:$HOME/bin:$HOME/.rbenv/bin | |
export PATH | |
eval "$(rbenv init -)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
build_package_load_patch() { | |
local package_name="$1" | |
{ | |
curl https://gist.github.com/bbg-deploy/6720705/raw/54dafcefd3b86cd881bd2c195f4ee7c12287975c/load.patch | patch -p1 | |
autoconf | |
./configure --prefix="$PREFIX_PATH" $CONFIGURE_OPTS | |
make -j 8 | |
make install | |
} >&4 2>&1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@ds1103 ~]# hostname | |
ds1103.blueboxgrid.com | |
[root@ds1103 ~]# ip a | |
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN | |
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 | |
inet 127.0.0.1/8 scope host lo | |
inet6 ::1/128 scope host | |
valid_lft forever preferred_lft forever | |
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000 | |
link/ether 00:25:90:a7:ac:f8 brd ff:ff:ff:ff:ff:ff |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- a/load.c 2010-10-23 05:36:38.000000000 -0400 | |
+++ b/patchload.c 2011-06-05 08:58:00.000000000 -0400 | |
@@ -40,14 +40,6 @@ | |
VALUE ary; | |
long i; | |
- for (i = 0; i < RARRAY_LEN(load_path); ++i) { | |
- VALUE str = rb_check_string_type(RARRAY_PTR(load_path)[i]); | |
- if (NIL_P(str) || !rb_is_absolute_path(RSTRING_PTR(str))) | |
- goto relative_path_found; |
OlderNewer