atom通過remote-ftp實現與伺服器檔案同步
阿新 • • 發佈:2019-01-24
- 搜尋 “remote ftp”, 點選 “Package”搜尋包,Install”安裝
- 本地開啟需要同步的專案目錄
- 建立 remote-ftp 的配置檔案,Packages -> Remote-ftp -> creadte SFTP config file
- 修改配置檔案,將host,賬號密碼替換,sftp預設配置
{
"protocol": "sftp",
"host": "example.com",
"port": 22,
"user": "user",
"pass": "pass",
"promptForPass": false ,
"remote": "/",
"local": "",
"agent": "",
"privatekey": "",
"passphrase": "",
"hosthash": "",
"ignorehost": true,
"connTimeout": 10000,
"keepalive": 10000,
"keyboardInteractive": false,
"keyboardInteractiveForPass": false,
"remoteCommand": "",
"remoteShell ": "",
"watch": [],
"watchTimeout": 500
}
- 新增 Remote並連線至伺服器,Packages-> Remote-ftp-> Toggle, 新增 Remote 標籤。Remote -> connect 連結至伺服器
Sync local -> remote 同步到伺服器
Sync local <- remote 伺服器同步本地