DISQUS

Community Page on DISQUS

what is this?

Jump to original thread »
Author

Heroku | API and External Git Access

Started by jamesheroku · 9 months ago

No excerpt available. Jump to website »

41 comments

  • Any chance there will be support for external git repositories like GitHub?
  • Encountered a problem here:


    $ heroku create tester-app
    Created http://tester-app.heroku.com/
    $ heroku clone tester-app
    Initialized empty Git repository in /Users/.../repo/heroku/tester-app/.git/
    Permission denied (publickey).
    fatal: The remote end hung up unexpectedly
    fetch-pack from 'git@heroku.com:tester-app.git' failed.
    $


    Guessing it's a problem with passwordless ssh, but the rsa key I set up works to log onto other systems.
  • Having the same problem. Any ideas?
  • same problem
  • The gem looks for your RSA public key in "~/.ssh/id_rsa.pub". You may need to generate a keypair with "ssh-keygen -t rsa". A more informative interface for the heroku command line tool is forthcoming.
  • I have done this and am still getting "Permission denied (publickey)." :(

    1. I cleared out the heroku entries in ~/.ssh/known_hosts
    2. ran "ssh-keygen -t rsa"
    3. acepted the default "~/.ssh/id_rsa"
    4. ran git init on my directory (which I have been connecting to heroku successfully for the last month or so)
    5. git pull..
    BANG!

    Any ideas?
  • Try removing the ~/.heroku directory and trying it again.
  • Thanks, I did that, but my existing project still wouldn't sink (I'm guessing because the public key on the server when I first executed `heroku clone APP` doesn't match anymore?)

    So I renamed the directory and ran `heroku clone APP` and now it all works again! Yay!

    Out of curiosity; Is there a another way which I could have updated the public key on the heroku server? Is there a git command for this?

    Glad it's working now anyways?! Thanks very much!!
  • You can upload a new key using 'heroku upload_authkey ~/.ssh/id_rsa.pub'
  • Doing this I get
    "Uploading ssh public key
    Authentication failure"

    Any idea on this?
  • that's too cool. i'll have to try it out soon.
  • that's too cool.. have to try it soon.
  • oops.. sorry about the double post.
  • Does this work on Windows?
  • Do I need git installed?
  • It seems so because it uses git to fetch and push the app to heroku server.
  • Is it necessary to clone the Heroku app, or can you merely push an existing app (with the appropriate configuration) up to Heroku?
  • wow, been waiting for this for a long time. I can't do much without vi. Nice
  • SWEET!
  • Can you please store the password in a hashed way ?
    Right now it's in plaintext in ~/.heroku/credentials
  • password => "xxxxxx"

    not work, please help
  • You may be interested in http://www.web2py.com, which provides similar functionaities as your web site (in Python, nor Ruby) but the entire web interface is open source and you can run it on your own system.
  • Is git pull fully supported? I have a Heroku app that I have cloned to my local machine. I have made changes to this app online, but when I do a 'git pull' on my local machine, it's telling that that I already have the latest up-to-date copy. Am I doing something wrong here?
  • Yep, it's a normal git repo, so all standard actions should work. My guess is that you didn't commit your changes in the web editor - click "Revisions >>", enter a commit message in the box, and click "Commit."
  • You're right Adam, I figured that out about 15 minutes after I posted this question.
  • Is it possible in the web interface to revert to a previous revision? I can't seem to figure out how to do this...
  • Mmm, maybe someone can help accelerate the effort of TortoiseGIT (GIT Cheetah http://repo.or.cz/w/git-cheetah.git/) for us Windows based developers.

    Geez, maybe Bill will buy this "open source" thing and these problems will go away.

    (joke)
  • And my browser has to be Firefox 2?
  • Outstanding! I love the work you guys are doing.
  • This seems really cool, however, I see the following error (I've filtered out my project name, obviously):

    tardis:Projects rroland$ heroku clone ...
    Initialized empty Git repository in /Users/rroland/Projects/.../.git/
    fatal: '/userapps/10259': unable to chdir or not a git archive
    fatal: The remote end hung up unexpectedly
    fetch-pack from 'git@heroku.com:irecipe.git' failed.
  • Same problem here... any idea?
  • Same error, anyone got any ideas?
  • I've been trying to track this one down for a while now - it's very intermittent, and I've yet to be able to get it to happen when testing. To compound the problem, using ssh as a transport leaves you with very little in the way of logging options, which makes it even harder to diagnose. If anyone has any clues as to when this happens, please post to the mailing list or come on the IRC channel. I'd really love to get to the bottom of this.
  • good, can be better if we can remotely run rake and console commands! =)
  • I'd love it if I could integrate an existing subversion repository into Heroku somehow.. :)
  • i get this error trying to clone a freshly created project

    Initialized empty Git repository in /Users/hangon/Sites/myproject/.git/
    Permission denied (publickey).
    fatal: The remote end hung up unexpectedly
    fetch-pack from 'git@heroku.com:whatsupdoc.git' failed.

    my rsa key seems to be created
  • my bad...
    i've just created the key after creating the new app.
    re starting from zero and it's fine
  • same problem here, i tried everything from deleting credentials upto deleting the .ida_rsa
  • Hi,
    I was following the screencast going fine until git push :

    C:\rails_app\multiopenid>git push
    fatal: 'origin': unable to chdir or not a git archive
    fatal: The remote end hung up unexpectedly

    ... any idea ?
    thanks in advance
    lgs
  • Thanks, I did that, but my existing project still wouldn't sink (I'm guessing because the public key on the server when I first executed `heroku clone APP` doesn't match anymore?)

    So I renamed the directory and ran `heroku clone APP` and now it all works again! Yay!

    Out of curiosity; Is there a another way which I could have updated the public key on the heroku server? Is there a git command for this?

    Glad it's working now anyways?! Thanks very much!!
  • Trying to use that feature on Windows XP but encoutered some problems:
    I generate public key using PuTTYgen utility. Then I get:

    Uploading ssh public key C:\Documents and Settings\myname/.ssh/id_rsa.pub
    Contents Invalid public key

    How it could be solved?

Add New Comment

Returning? Login