Skip to content
geoffsmith edited this page Sep 13, 2010 · 2 revisions
  1. Install the ruby-farm-capistrano gem
  2. Run capify and edit your config/deploy.rb (see Deploy File). Don’t forget to require 'ruby-farm-capistrano' and initialize_ruby_farm_capistrano().
  3. Set up the client with cap chef:create_client
  4. Create a keypair for this project cap aws:create_keypair (this will copy your new key into config/farmkey. This is needed so that capistrano can log into your EC2 instances and run stuff.
  5. Start a new instance cap aws:start_instance
  6. Bootstrap the instance to chef cap chef:bootstrap
  7. Assign the relevant roles to the instance cap farm:assign_rails, cap farm:assign_db and cap farm:assign_web
  8. Update the chef attributes with cap chef:update_nodes
  9. Make sure that your instance can connect to your git host: cap farm:add_git_known_host
  10. Deploy the app cap deploy:setup and cap deploy

Clone this wiki locally