Skip to content
denofiend edited this page Nov 19, 2013 · 6 revisions

function help:

* scp_file(App, LocalFile, RemotePath):    -- scp LocalFile to RemotePath of all servers for App.

* scp_dir(App, LocalDir, RemoteDir):       -- scp LocalDir to RemoteDir of all servers for App.

* hot_upgrade_file(App, ModuleFile):       -- hot upgrade ModuleFile for App.

* hot_upgrade_dir(App, ModuleDir):         -- hot upgrade all ModuleFile of ModuleDir for App.

* restart_server(App, ModuleDir):          -- restart all servers for App.

examples:

* scp_file(App, LocalFile, RemotePath):    -- deploy:scp_file(deploy, "/home/zhaoxu/file", "/data").

* scp_dir(App, LocalDir, RemoteDir):       -- deploy:scp_dir(deploy, "/home/zhaoxu/dir", "/data").

 *hot_upgrade_file(App, ModuleFile):       -- deploy:hot_upgrade_file(deploy, "/home/zhaoxu/example.beam").

 *hot_upgrade_dir(App, ModuleDir):         -- deploy:hot_upgrade_dir(deploy, "/home/zhaoxu/dir").

 *restart_server(App, ModuleDir):          -- deploy:restart_server(deploy).

done

2013-11-19

1. multiple process to scp directory.

2. print success count, failed count, failed file reason of scp directory.

todo

Clone this wiki locally