Sublime的ftp远程同步

远程同步太多了,例如下面:

  1. ftpSync
  2. sftp

下面使用sftp

使用

  1. file -> SFTP/FTP -> Edit map...,或者right click on the project and selected Edit Map...(具体选项不太清楚,还是不要花时间记住这个吊用的单词,有个模糊概念就行了)。但我的操作

ctrl + shitp + p 搜索并执行SFTP Map to Remote; 会生成sftp-confing.json。你手动创建也行。

参数不我不做说明,我也没看我他官网说名,如果你用atom的remote-ftp,那么这个就简单了。

{
    // The tab key will cycle through the settings when first created
    // Visit http://wbond.net/sublime_packages/sftp/settings for help
    
    // sftp, ftp or ftps
    "type": "ftp",

    "save_before_upload": true,
    "upload_on_save": false,
    "sync_down_on_open": false,
    "sync_skip_deletes": false,
    "sync_same_age": true,
    "confirm_downloads": false,
    "confirm_sync": true,
    "confirm_overwrite_newer": false,
    
    "host": "ip hor domainName",
    "user": "your username",
    "password": "password",
    "port": "21",
    
    "remote_path": "/upload/to/target/path",
    "ignore_regexes": [
        "\\.sublime-(project|workspace)", "sftp-config(-alt\\d?)?\\.json",
        "sftp-settings\\.json", "/venv/", "\\.svn/", "\\.hg/", "\\.git/",
        "\\.bzr", "_darcs", "CVS", "\\.DS_Store", "Thumbs\\.db", "desktop\\.ini"
    ],
    //"file_permissions": "664",
    //"dir_permissions": "775",
    
    //"extra_list_connections": 0,

    "connect_timeout": 30,
    //"keepalive": 120,
    //"ftp_passive_mode": true,
    //"ftp_obey_passive_host": false,
    //"ssh_key_file": "~/.ssh/id_rsa",
    //"sftp_flags": ["-F", "/path/to/ssh_config"],
    
    //"preserve_modification_times": false,
    //"remote_time_offset_in_hours": 0,
    //"remote_encoding": "utf-8",
    //"remote_locale": "C",
    "allow_config_upload": true,
}
  1. right click to select upload, or ctrl + shift + p search and execute upload

ps: 有点遗憾就是ftp上没有目录,而不能自动创建,需要手工创建, 而atom的remote-ftp则不一样。

其他操作参考 atom的操作,这里不在说明了。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 我目前目前值接触到ftp,sftp和ftps暂不考虑。 早起刚解除行业,领着我和同事做项目的,叫我们统一用hbui...
    akira_preview阅读 4,897评论 0 0
  • 译者注:这里面的内容主要是分析mp4/3gp文件的层级结构,详细的介绍了各种不同的box的结构等,网上有一些参考资...
    HaloMartin阅读 7,717评论 0 2
  • FTP服务概述 简单FTP构建及访问 VSFTP服务基础 用户禁锢、黑白名单 FTP并发及带宽限制 一、FTP服务...
    紫_轩阅读 12,325评论 3 25
  • 相信做开发的同学都知道Sublime Text这个神级开发工具的存在,漂亮的界面,优雅的功能实现,丰富的插件,极高...
    我是局长阅读 14,496评论 2 12
  • 我是很不喜欢4这个数字的,说我迷信也好或者其他的,我都认了,我喜欢3。如图,一直想要去掉一个,但是删除哪一个都不忍...
    在白纸上画圆阅读 3,826评论 0 0