-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use with npm script? #14
Comments
You'd be better off using deployator for this use case. This is a command-line interface for ssh-deploy-release. |
Oh wow thank you for this fast reply! One last question about this... i use MacOS and try to use the script. but he tell me |
You can provide the path to the ssh-agent socket using the Example:
|
I think it would be very great if someone can add this information to the documentation :) But with my whole config look like: (I have on my side ofc real path and username in the review config ;) But i removed password, because i want to use only SSH.
By the way: I am talking about a solution that read keyfiles automaticly, if on Windows is PuTTys Peagend loaded or if on mac and linux systems are keys added to keychain with |
We're reaching the edge of my ssh-agent knowledge. Have you checked that your ssh-agent knows about your key? You can do this with the following command |
No problem, my knowledge about ssh-agent is about on 5% ;P
|
Sorry I cannot help you much more. I made a quick test & was able to deploy to my server using only the I got the |
maybe because my keyformat... what format you use? and what keyformats are supported? when i use direct path to key he say that the keyformat is not supported (ed25519) |
Could be. I found this ssh2 issue which suggests you need node 12 and The next release of ssh-deploy-release will use the latest ssh2 version, but it's still being tested. |
Hmmm i have only |
@nstCactus is with ssh2 this package meand? https://www.npmjs.com/package/ssh2#client |
Yes this is the package I was talking about but it won't help you. It's an ssh-deploy-release dependency and I don't think you can force it to use a specific version. |
i updated to nodeJS 12. then i will wait for updated on the deployator package :) |
Today I published beta versions of ssh-deploy-release & deployator with support for the ed25519 key format (as long as you run node 12). They haven't been heavily tested but if you want to give it a try, you can them using this command : Any feedback will be greatly appreciated! |
Thanks! but i figured out that i need to wait that NodeJS 12 gets stable. i have no admin rights to install this on my companys computer and also other people here have only LTS installed =( |
All right. Closing it for now but feel free to reopen if you run into issues once you are able to upgrade. |
I cant find in the documentation any about how to load / use the config file with npm script?
I install it with
npm install ssh-deploy-release --save
then i addnpm run ssh-deploy-release
? but how i tell him what configs he have to use?The text was updated successfully, but these errors were encountered: