Re: Workflow to allow heroku to install a 'private' (local) gem on deploy

2010-08-13 Thread Bradley
I'm getting the impression that a bundle package, then committing those packaged gems to the repo and deploying is the way to go. Will heroku by default look in the vendor/cache directory first before installing gems remotely? On Aug 12, 7:14 am, Matthew Todd matthew.t...@gmail.com wrote: On

Re: Workflow to allow heroku to install a 'private' (local) gem on deploy

2010-08-12 Thread Matthew Todd
On Aug 12, 2010, at 3:34 AM, Bradley wrote: Right, so I added in: Host heroku.com ForwardAgent yes to my Tomcat user's ~/.ssh/config. This is the user that checks out from Github then pushes to heroku. I still get the same error, Permission denied (publickey). Hi, Brad -- I've just

Re: Workflow to allow heroku to install a 'private' (local) gem on deploy

2010-08-11 Thread Bradley
Right, so I added in: Host heroku.com ForwardAgent yes to my Tomcat user's ~/.ssh/config. This is the user that checks out from Github then pushes to heroku. I still get the same error, Permission denied (publickey). Can you explain how this is supposed to work? I'm confused as to how Heroku

Re: Workflow to allow heroku to install a 'private' (local) gem on deploy

2010-08-11 Thread David Balatero
If Bundler is running on Heroku, the Heroku UNIX user account needs to have its public key in your Github repo as an authorized key. Each Heroku machine will have a different SSH key generated, and you non-deterministically deploy to some machine in the Heroku cloud each time you deploy. Even if

Re: Workflow to allow heroku to install a 'private' (local) gem on deploy

2010-08-10 Thread Bradley
Hmm... this doesn't seem to work. I was under the impression that all of the Gem packaging was happening locally, with a git hook, but it must be happing on heroku's end in a post-receive or something as you can see it fails with a public key denied. Here's my output: Fetching

Re: Workflow to allow heroku to install a 'private' (local) gem on deploy

2010-08-10 Thread Matthew Todd
On Aug 10, 2010, at 2:51 PM, Bradley wrote: Fetching g...@github.com:myuser/mygem.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 [31mAn error has

Re: Workflow to allow heroku to install a 'private' (local) gem on deploy

2010-08-10 Thread Bradley
this should be added to the github user's ssh config? I'm not sure i have that control. On Aug 10, 8:28 am, Matthew Todd matthew.t...@gmail.com wrote: On Aug 10, 2010, at 2:51 PM, Bradley wrote: Fetching g...@github.com:myuser/mygem.git       Failed to add the host to the list of known

Re: Workflow to allow heroku to install a 'private' (local) gem on deploy

2010-08-10 Thread Matthew Todd
On Aug 10, 2010, at 8:28 AM, Matthew Todd wrote: Host heroku.com ForwardAgent yes On Aug 11, 2010, at 7:34 AM, Bradley wrote: this should be added to the github user's ssh config? No, to the ssh config of any *local* user (having access to your private GitHub repository) who needs to run

Re: Workflow to allow heroku to install a 'private' (local) gem on deploy

2010-08-09 Thread Richard Conroy
On Sun, Aug 8, 2010 at 10:23 PM, Bradley bradleyrobert...@gmail.com wrote: I'm writing a new app that uses a custom gem not publicly available on gemcutter, or anywhere for that matter. I'm building both the app and gem with Hudson CI, then I'd like the app pushed to heroku by somehow

Re: Workflow to allow heroku to install a 'private' (local) gem on deploy

2010-08-09 Thread David Balatero
If you could package a custom SSH pub/private keypair with your Gemfile, you could then: 1) Add that pub key to Github 2) Set the :git source in the Gemfile for your private gem to point at your private SSH Github URL. However, I don't believe Bundler supports having an embedded public/private

Re: Workflow to allow heroku to install a 'private' (local) gem on deploy

2010-08-09 Thread Bradley
Well my CI server already has access to the github repo (added its key to github) in order to build my apps/gems, so presumably I should just be able to use the git source as normal, and when I do the heroku push, I'm assuming it's this CI user that will be doing the bundling before pushing to

Workflow to allow heroku to install a 'private' (local) gem on deploy

2010-08-08 Thread Bradley
I'm writing a new app that uses a custom gem not publicly available on gemcutter, or anywhere for that matter. I'm building both the app and gem with Hudson CI, then I'd like the app pushed to heroku by somehow installing this gem and pushing. I'm a bit confused as to how I might do this. Do I

Re: Workflow to allow heroku to install a 'private' (local) gem on deploy

2010-08-08 Thread Michishige Kaito
El 08/08/10 22:23, Bradley escribió: I'm writing a new app that uses a custom gem not publicly available on gemcutter, or anywhere for that matter. I'm building both the app and gem with Hudson CI, then I'd like the app pushed to heroku by somehow installing this gem and pushing. I'm a bit