Trouble deploying rails app to DH - "Permission de


#1

hey, I searched for this but to no avail (I suspect because I don’t know what I am looking for). If anyone can help me out I’d be greatful.

I am new to all this and am having real trouble deploying a rails app to DH using capistrano. My repo is on Github and I think my SSH keys are giving me jip. Below is what happens when I run ‘cap deploy’:

Adam-Rogers-2:following Adam$ cap deploy

  • executing `deploy’
  • executing `deploy:update’
    ** transaction: start
  • executing `deploy:update_code’
    updating the cached checkout on all servers
    executing locally: “git ls-remote git@github.com:Rodreegez/following.git master”
  • executing "if [ -d /home/rodreegez/reallyneatapps.com/shared/cached-copy ]; then cd /home/rodreegez/reallyneatapps.com/shared/cached-copy && git fetch origin && git reset --hard 5c4e7ba594ff0253fb0564da8692fc2ee8e29b02; else git clone git@github.com:Rodreegez/following.git /home/rodreegez/reallyneatapps.com/shared/cached-copy && cd /home/rodreegez/reallyneatapps.com/shared/cached-copy && git checkout -b deploy 5c4e7ba594ff0253fb0564da8692fc2ee8e29b02; fi"
    servers: [“penguin.dreamhost.com”]
    Password:
    [penguin.dreamhost.com] executing command
    ** [penguin.dreamhost.com :: out] Initialized empty Git repository in /home/rodreegez/reallyneatapps.com/shared/cached-copy/.git/
    ** [penguin.dreamhost.com :: out] Permission denied (publickey).
    ** [penguin.dreamhost.com :: out] fatal: The remote end hung up unexpectedly
    command finished
    *** [deploy:update_code] rolling back
  • executing "rm -rf /home/rodreegez/reallyneatapps.com/releases/20090222161655; true"
    servers: [“penguin.dreamhost.com”]
    [penguin.dreamhost.com] executing command
    command finished
    failed: “sh -c “if [ -d /home/rodreegez/reallyneatapps.com/shared/cached-copy ]; then cd /home/rodreegez/reallyneatapps.com/shared/cached-copy && git fetch origin && git reset --hard 5c4e7ba594ff0253fb0564da8692fc2ee8e29b02; else git clone git@github.com:Rodreegez/following.git /home/rodreegez/reallyneatapps.com/shared/cached-copy && cd /home/rodreegez/reallyneatapps.com/shared/cached-copy && git checkout -b deploy 5c4e7ba594ff0253fb0564da8692fc2ee8e29b02; fi”” on penguin.dreamhost.com
    Adam-Rogers-2:following Adam$

I’m afraid I have little to no idea what I’m doing. I have added my local machine’s public ssh key and my DH public ssh key to my profile Irather than the app repo) on Github.

I have used this as the basis of my deploy.rb file: http://snipplr.com/view.php?codeview&id=8507

The app, ‘following’, has no database but dies use the twitter gem.

I hope that is enough information for someone to shed a little light on what is happening. This has been driving me up the wall for a couple of days now. If you think it would be easier via IM or something then pm me or catch me on electronicbattleweapon7 at gmail dot com.

I hope someone can help!


#2

added some more info here: http://reallyneatapps.com/