Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to pull plugin from github on heroku?

Gemfile:

...
gem 'paperclip', :git => '[email protected]:mdrozdziel/paperclip.git'
...

While pushing the app I get the following error. The repo I am linking to is public.

Fetching [email protected]:mdrozdziel/paperclip.git
   Failed to add the host to the list of known hosts (/home/group_home/.ssh/known_hosts).
   Permission denied (publickey).
   fatal: The remote end hung up unexpectedly
   An error has occurred in git when running `git clone "[email protected]:mdrozdziel/paperclip.git" "/disk1/tmp/build_28099_23931178722320/.bundle/gems/ruby/1.8/cache/bundler/git/paperclip-c032df0dc0463697a1ce5ae3761bec95be700815" --bare --no-hardlinks. Cannot complete bundling.

Any idea what is the problem here? Console shows that /home/group_home/ does not exists...

like image 961
mdrozdziel Avatar asked Sep 19 '10 10:09

mdrozdziel


People also ask

How do I import from GitHub to Heroku?

To deploy your app to Heroku, use the git push command to push the code from your local repository's main branch to your heroku remote. For example: $ git push heroku main Initializing repository, done.

Can I Git pull from Heroku?

Also note that Heroku should not be considered a git hosting. It means that it's extremely uncommon to perform a git pull from Heroku. Instead, you should use a git hosting (such as GitHub or BitBucket) to store your repository and only perform push to Heroku to deploy the application.

How do I download Heroku code from Git?

Just go to https://dashboard.heroku.com/apps/YOUR_APP_NAME/deploy/heroku-git. If you haven't already, log in to your Heroku account and follow the prompts to create a new SSH public key. Use Git to clone YOUR_APP_NAME's source code to your local machine.


1 Answers

It seems the :git param you're providing is causing bundler to try to pull it over ssh. You'll need to use a public repository address. Try the following instead:

gem 'paperclip', :git => 'git://github.com/mdrozdziel/paperclip.git'
like image 196
semanticart Avatar answered Sep 30 '22 19:09

semanticart