This HowTo explain how to deploy web applications through capistrano with git repo hosted on bitbucket.org.
This was tested with EC2 instance and you need to edit your ssh config so that root could login with the password.
Add you public key to the server for authentication:
cat ~/.ssh/id_rsa.pub | ssh ServerName/IP “cat >> .ssh/authorized_keys”
Install the required package
apt-get install capistrano
Create a deployment config file
cd /var/www/deploy
capify .
vi /var/www/deploy/config/deploy.rb
set :application, “testapp”
server “gloss.io”, :web ,:primary => true
set :deploy_to, “/var/www/#{application}”
set :use_sudo, false
ssh_options[:forward_agent] = true
set :scm, :git
set :repository, “https://user:passowrd@bitbucket.org/BITBUCKETUSERNAME/PROJECT.git”
set :branch, “master”
role :app, ‘ROLE’
A hardware-based content as a tool to drive sales (Amazon), one is to use content to attract
consumers to buy hardware (Apple). Most of those
who know him well agree it is a combination of his own inherent innovative abilities combined with his
ability to discern and encourage that same ability in others.
I really love what Amazon has brought to the table with this tablet
and giving Apple a run for its money.