bundle install
me: working on multiple projects at the same time
bundle install
apt-get install sqlite3 libsqlite3-dev
cp config/database.yml.example config/database.yml
rake db:create:all
rake db:schema:load
rake db:seeds
google postgresql permissions superuser
rails s
apt-get install redis
apt-get install redis-server
wget redis && dpkg - i ... yada yada yada
rails s
vagrant up
vagrant up
box_url = ENV['ARKENCY_32'] ? "http://files.vagrantup.com/precise32.box" : "http://dl.dropbox.com/u/937870/VMs/squeeze64.box"
Vagrant::Config.run do |multi|
multi.vm.define :trainer do |config|
config.vm.box = "trainer"
config.vm.box_url = box_url
end
end
vagrant up
vagrant ssh trainer -c 'sudo apt-get update'
fix node:local-trainer --debug
vagrant ssh trainer -c 'cd current && gem install bundler && bundle install'
vagrant ssh trainer -c 'cd current && xvfb-run -a bundle exec rake cucumber'
ls -1 *.yml.example | wc -l
14
package 'uuid-dev'
zmq = node['zmq'] || {}
zmq_v = zmq['version'] || '2.2.0'
name = "zeromq-#{zmq_v}.tar.gz"
unpack = 'zeromq-' + zmq_v.split("-").first
cache_dir = Chef::Config[:file_cache_path]
download_destination = File.join(cache_dir, name)
unpack_destination = File.join(cache_dir, unpack)
remote_file download_destination do
source "http://download.zeromq.org/#{name}"
mode "0644"
action :create_if_missing
end
execute "Extract zmq #{zmq_v} archive" do
command "tar xvzf #{download_destination} -C #{cache_dir}"
creates unpack_destination
end
execute "Install zmq #{zmq_v} version" do
command "cd #{unpack_destination} && ./configure && make && sudo make install && sudo ldconfig"
not_if { `ldconfig -p | grep libzmq | wc -l`.to_i > 0}
end