-
Notifications
You must be signed in to change notification settings - Fork 0
Tutorial
geoffsmith edited this page Sep 13, 2010
·
2 revisions
- Install the ruby-farm-capistrano gem
- Run
capifyand edit yourconfig/deploy.rb(see Deploy File). Don’t forget torequire 'ruby-farm-capistrano'andinitialize_ruby_farm_capistrano(). - Set up the client with
cap chef:create_client - Create a keypair for this project
cap aws:create_keypair(this will copy your new key intoconfig/farmkey. This is needed so that capistrano can log into your EC2 instances and run stuff. - Start a new instance
cap aws:start_instance - Bootstrap the instance to chef
cap chef:bootstrap - Assign the relevant roles to the instance
cap farm:assign_rails,cap farm:assign_dbandcap farm:assign_web - Update the chef attributes with
cap chef:update_nodes - Make sure that your instance can connect to your git host:
cap farm:add_git_known_host - Deploy the app
cap deploy:setupandcap deploy