emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/ssh-deploy efc8be3 058/133: Added another example using


From: Stefan Monnier
Subject: [elpa] externals/ssh-deploy efc8be3 058/133: Added another example using plug-in functions from script
Date: Sat, 27 Mar 2021 14:48:43 -0400 (EDT)

branch: externals/ssh-deploy
commit efc8be32307abe869bc01d5f7bfb5a74c55b6cbe
Author: Christian Johansson <christian@cvj.se>
Commit: Christian Johansson <christian@cvj.se>

    Added another example using plug-in functions from script
---
 README.md | 22 ++++++++++++++++++----
 1 file changed, 18 insertions(+), 4 deletions(-)

diff --git a/README.md b/README.md
index 12b7627..d05136c 100644
--- a/README.md
+++ b/README.md
@@ -92,19 +92,33 @@ You really need to do a bit of research about how to 
connect via different proto
 
 You can pipe remote connections as well like this:
 
-### SSH, not asynchronous, with automatic uploads, piped to other user on 
remote server and with custom deployment script.
+### SSH, asynchronous using threads, with automatic uploads, piped to other 
user on remote server and with custom deployment script.
 
 ``` emacs-lisp
 ((nil . (
   (ssh-deploy-root-local . "/Users/username/Web/MySite/")
   (ssh-deploy-root-remote . 
"/ssh:myuser@myserver.com|sudo:web@myserver.com:/var/www/MySite/")
-  (ssh-deploy-async . 0)
+  (ssh-deploy-async . 1)
+  (ssh-deploy-async-with-threads . 1)
   (ssh-deploy-on-explicit-save . 1)
-  (ssh-deploy-script . (lambda() (let ((default-directory 
ssh-deploy-root-remote))(shell-command "bash compile.sh"))))
+  (ssh-deploy-script . (lambda() (let ((default-directory 
ssh-deploy-root-remote)) (shell-command "bash compile.sh"))))
+)))
+```
+
+### SSH, asynchronous not using threads, without automatic uploads, piped to 
other user on remote server and with custom deployment script.
+
+``` emacs-lisp
+((nil . (
+  (ssh-deploy-root-local . "/Users/username/Web/MySite/")
+  (ssh-deploy-root-remote . 
"/ssh:myuser@myserver.com|sudo:web@myserver.com:/var/www/MySite/")
+  (ssh-deploy-async . 1)
+  (ssh-deploy-async-with-threads . 0)
+  (ssh-deploy-on-explicit-save . 0)
+  (ssh-deploy-script . (lambda() (let ((default-directory 
ssh-deploy-root-local)) (shell-command "bash compile.sh") 
(ssh-deploy-upload-handler))))
 )))
 ```
 
-If you have a password-less sudo on your remote host you should be to do this 
asynchronously.
+If you have a password-less sudo on your remote host you should be to do this 
asynchronously or if you have your sudo credentials in your `~/.authinfo.gpg` 
file.
 
 ### FTP, with automatic uploads
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]