Closed HerveSeger closed 7 years ago
I haven't ever used this feature myself. Someone else implemented it. Maybe they could chime in? /cc @jzempel
@HerveSeger You could use ssh-keygen -p -f your-private-key
to remove the password, just press enter when asked for the new password to remove it.
@HerveSeger did you ever get this working? running into the same thing though there's no passphrase set
@felixbuenemann Sorry for my late answer.
If I remember correctly I never setup a password (similar to what @vladucu did) but the passphrase was still required when building. So I was stuck.
Anyway I think that building locally and deploying the /dist folder as a static website is the best solution. I have had the chance to test this solution on a private cloud and it is simpler.
The following should work to add the ssh key when it always asks for passphrase:
echo $GIT_SSH_KEY | base64 --decode | DISPLAY= ssh-add - &>/dev/null
This also never writes the key out to a file, which is better for security.
Hi.
I have a private repo in Github that is referenced in my
package.json
file like this:"ember-mx": "git+ssh://git@github.com:medavie/ember-mx.git#master"
I have created a key with an empty passphrase using
ssh-keygen
(no passphrase?).I can run
npm install
on Windows without any problem but on Heroku it fails.The problem is that the passphrase is expected when the script runs:
I know that in the build script there is a mention about passphrases not supported yet:
About
expect
, in this thread it shows how to use it to enter an empty passphrase.Is it planned to support passphrases (even empty passphrases) at some point?
Thanks for this very nice buildpack.