Hi Lee,

thank you for helping me over the #capistrano IRC channel and the
patience you have shown to guide me and not just spoonfeed me.

If I have made you frustrated with my words or actions over the past
few days, I did not intend for that.

FOllowing are what I have learned, hopefully someone who is as much of
a greenhorn as I am will find this useful.

assuming installation is not an issue etc,

assuming that you want to have the following setup,

and that you want to do it this way:

run "cap production deploy" from your laptop and have your server git
pull the latest code from a public repository like github.com or
projectlocker.com

the key thing is that you need to create a user account ON YOUR SERVER
that is meant for deployment.

let us call this user account 'deploy' without the quotes.

1) make sure that 'deploy' has the public key of your laptop.
(assuming you already have created a key pair for your laptop)

the public key of your laptop is a long sequence of text that should
be in /home/deploy/.ssh/authorized_keys

create the folders or file if they do not exist.

2) check that you can ssh into the server using dep...@server from
your laptop. if this works, it means that you have done 1) correctly.

3) generate keypair for 'deploy' at your server machine.

4) go to github.com or projectlocker and place the public key of the
keypair in 3) over at the website.

5) go to your working folder at server. Do a git init if you did not
already have a .git inside that folder. run git pull git-
[email protected]:abc.git or whatever your git repo url is.

6) if you succeed to pull your latest code from the public repo at
github or projectlocker, steps 3 and 4 were correctly done.

7) now ensure that you have the following in your deploy.rb

# set server user account responsible
set :user, "deploy"

# Deploy via a remote repository cache. In git's case, it
# does a "git fetch" on the remote cache before moving it into place
# can change this to :copy but apparently :remote_cache is faster
set :deploy_via, :remote_cache
8) run "cap production deploy:setup" because you are going to deploy
for the very first time.

9) run "cap production deploy" subsequently.

This thread is also cross-posted over at stackoverflow

http://stackoverflow.com/questions/4008303/unable-to-use-capistrano-prompted-for-password-i-am-not-sure-of/4024199

-- 
* You received this message because you are subscribed to the Google Groups 
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to 
[email protected] For more options, visit this group at 
http://groups.google.com/group/capistrano?hl=en

Reply via email to