Update rvm and enable hook:
rvm get head && rvm reload chmod +x $rvm_path/hooks/after_cd_bundler
Generate bin stubs:
# Mock columns for tables | |
list | |
user_id integer | |
items: | |
user_id integer | |
list_id integer | |
users_items: | |
user_id integer |
#photo-container { | |
padding: 15px; | |
} | |
#photo-container a { | |
overflow: hidden; | |
display: block; | |
float: left; | |
border: 1px solid #cdcac6; | |
padding: 0; |
Object.prototype.addCommas = -> | |
[left, right] = this.toString().split('.') | |
right = '.' + right if right? | |
right ?= '' | |
regex = /(\d+)(\d{3})/ | |
left = left.replace(regex, '$1' + ',' + '$2') while (regex.test(left)) | |
left + right |
Need to just refine our process a bit because it's becoming too much of a burden for acceptance testing. This might only be in place until product launch and then we can review and revise. All acceptance testing will be done on the staging server.
Add a story to tracker
rvm pkg install zlib | |
rvm pkg install openssl | |
rvm pkg install readline | |
export CC=/usr/bin/gcc-4.2 | |
rvm install ree --force --with-readline-dir=$rvm_path/usr |
require 'mongo_mapper' | |
ENV["RAILS_ENV"] ||= 'test' | |
$LOAD_PATH.unshift ::File.dirname(__FILE__) + '/../' | |
MongoMapper.connection = Mongo::Connection.new("127.0.0.1", 27017, :pool_size => 5) | |
MongoMapper.database = 'testdb' | |
Dir['app/plugins/*.rb'].sort.each do |file| |
Capistrano::Configuration.instance(:must_exist).load do | |
set :rack_env, ARGV.first or "#{default_stage}" | |
set :shared_path, "/var/rails/#{fetch(:rack_env)}/#{fetch(:application)}" | |
set :deploy_to, "/var/rails/#{fetch(:rack_env)}/#{fetch(:application)}/src" | |
set :repository, "[email protected]:stevedev/emgateway.git" | |
default_run_options[:pty] = true | |
set :use_sudo, false | |
set :user, "root" | |
set :deploy_via, :export |
Advanced topics might include deciding on a topic, each hack could have a silly name to make it memorable after large amounts of drinking.