I want to automate the remote deploymemnet which currently i am doing manually.
我想自动化当前我手动执行的远程deploymemnet。
The Process includes
该过程包括
- Make the tar ball from certain folders
- SFTP to remote server
- Rename the old folders
- untar the new tar file
- Restart apache
从某些文件夹中制作tar球
SFTP到远程服务器
重命名旧文件夹
解压新的tar文件
Remote system is on intranet and have no access to outside internet
远程系统位于Intranet上,无法访问外部Internet
I want to know how can i transfer the file from my python script and then when transfer is complete then log into ssh and do stuff. I am confused how can i achieve that. on local host and i can do all that but how can i do that on remote host
我想知道如何从我的python脚本传输文件,然后在传输完成后再登录ssh并执行操作。我很困惑,我怎么能实现这一点。在本地主机上,我可以做到这一切,但我怎么能在远程主机上做到这一点