美文网首页Atom
remote-ftp插件 实现远程服务器同步 [atom]

remote-ftp插件 实现远程服务器同步 [atom]

作者: MOIC_Qu | 来源:发表于2019-11-15 15:15 被阅读0次

近期接触平台开发,由于开发机的vim配置和git库版本,使用起来不便,更换在windows下,使用插件丰富的ATOM,这款IDE还是很强大(好看)。使用remote-ftp插件即可实现。总结一下整合环境搭建的流程。

前提条件

Xshell运行正常,有运行正常的机器和服务,主要针对git代码管理下的web服务。
PS:服务都可以,语言无限制

Windows下github下载

下载地址:https://desktop.github.com/


下载后正常安装,使用步骤后续单独更新。
大家多于git多少都有了解,这里就不多介绍了

Windows下atom下载

atom是github开源的编辑器,主要为web技术构建,启动速度快,支持多种功能的插件和主题,使用便利。
下载地址:https://atom.io/


下载后正常安装即可

remote-ftp插件的安装

打开atom,点击左上角功能栏 help > welcome guide


点击 install package,输入remote-ftp搜索插件,安装重启atom即可

remote-ftp使用

点击package > remote ftp > create sftp config file


更改默认的.ftpconfig文件
更改参数
只需要更改四个参数
host user pass remote
host 你的代码服务器的hostname 或者 ip
user 用户名
pass 密码
remote 想要同步的代码路径
更改后保存即可
{
    "protocol": "sftp",
    "host": "yourhostname or ip",
    "port": 22,
    "user": "yourname",
    "pass": "yourpassword",
    "promptForPass": false,
    "remote": "/home/moic",
    "local": "",
    "agent": "",
    "privatekey": "",
    "passphrase": "",
    "hosthash": "",
    "ignorehost": true,
    "connTimeout": 10000,
    "keepalive": 10000,
    "keyboardInteractive": false,
    "keyboardInteractiveForPass": false,
    "remoteCommand": "",
    "remoteShell": "",
    "watch": [],
    "watchTimeout": 500
}

点击上图Toggle 左侧目录会出现remote 然后点击connect即可链接。
链接成功后,remote会出现配置文件指定服务器路径下的目录树。


左侧目录树
页面右上角显示成功提示
此时编辑ide下的文件,保存后会同步到指定机器的指定目录

同步git

windows下当前目录如果时github目录下,可同步git。这个功能是我觉得特别方便的。(好看是我用它的第一理由)
atom右下角会显示git分支
进行git操作十分便利。

分支 状态 gitdiff数 和待更新diff

相关文章

网友评论

    本文标题:remote-ftp插件 实现远程服务器同步 [atom]

    本文链接:https://www.haomeiwen.com/subject/yigjictx.html