• 技术文章 >后端开发 >php教程

    atom 如何設定ftp自動上傳

    2016-12-01 00:56:56原创802
    請問如何設定atom 如何設定ftp自動上傳?!
    研究老半天
    已經下載remote ftp套件了~~然後發愣....

    {
        "protocol": "ftp",
        "host": "example.com", // string - The hostname or IP address of the FTP server. Default: 'localhost'
        "port": 21, // integer - The port of the FTP server. Default: 21
        "user": "user", // string - Username for authentication. Default: 'anonymous'
        "pass": "pass", // string - Password for authentication. Default: 'anonymous@'
        "promptForPass": false, // boolean - Set to true for enable password dialog. This will prevent from using cleartext password in this config. Default: false
        "remote": "//m.sbmmt.com/m/",
        "secure": false, // mixed - Set to true for both control and data connection encryption, 'control' for control connection encryption only, or 'implicit' for implicitly encrypted control connection (this mode is deprecated in modern times, but usually uses port 990) Default: false
        "secureOptions": null, // object - Additional options to be passed to tls.connect(). Default: (null) see http://nodejs.org/api/tls.html#tls_tls_connect_options_callback
        "connTimeout": 10000, // integer - How long (in milliseconds) to wait for the control connection to be established. Default: 10000
        "pasvTimeout": 10000, // integer - How long (in milliseconds) to wait for a PASV data connection to be established. Default: 10000
        "keepalive": 10000, // integer - How often (in milliseconds) to send a 'dummy' (NOOP) command to keep the connection alive. Default: 10000
        "watch":[ // array - Paths to files, directories, or glob patterns that are watched and when edited outside of the atom editor are uploaded. Default : []
            "./dist/stylesheets/main.css", // reference from the root of the project.
            "./dist/stylesheets/",
            "./dist/stylesheets/*.css"
        ],
        "watchTimeout":500 // integer - The duration ( in milliseconds ) from when the file was last changed for the upload to begin.
    }

    如何設定我這個資料夾的檔案若任何一個儲存後 則傳到ftp上的哪個資料夾?

    以及Package preferences的設定我找不到....就是可以設定儲存後自動上傳

    回复内容:

    請問如何設定atom 如何設定ftp自動上傳?!
    研究老半天
    已經下載remote ftp套件了~~然後發愣....

    {
        "protocol": "ftp",
        "host": "example.com", // string - The hostname or IP address of the FTP server. Default: 'localhost'
        "port": 21, // integer - The port of the FTP server. Default: 21
        "user": "user", // string - Username for authentication. Default: 'anonymous'
        "pass": "pass", // string - Password for authentication. Default: 'anonymous@'
        "promptForPass": false, // boolean - Set to true for enable password dialog. This will prevent from using cleartext password in this config. Default: false
        "remote": "//m.sbmmt.com/m/",
        "secure": false, // mixed - Set to true for both control and data connection encryption, 'control' for control connection encryption only, or 'implicit' for implicitly encrypted control connection (this mode is deprecated in modern times, but usually uses port 990) Default: false
        "secureOptions": null, // object - Additional options to be passed to tls.connect(). Default: (null) see http://nodejs.org/api/tls.html#tls_tls_connect_options_callback
        "connTimeout": 10000, // integer - How long (in milliseconds) to wait for the control connection to be established. Default: 10000
        "pasvTimeout": 10000, // integer - How long (in milliseconds) to wait for a PASV data connection to be established. Default: 10000
        "keepalive": 10000, // integer - How often (in milliseconds) to send a 'dummy' (NOOP) command to keep the connection alive. Default: 10000
        "watch":[ // array - Paths to files, directories, or glob patterns that are watched and when edited outside of the atom editor are uploaded. Default : []
            "./dist/stylesheets/main.css", // reference from the root of the project.
            "./dist/stylesheets/",
            "./dist/stylesheets/*.css"
        ],
        "watchTimeout":500 // integer - The duration ( in milliseconds ) from when the file was last changed for the upload to begin.
    }

    如何設定我這個資料夾的檔案若任何一個儲存後 則傳到ftp上的哪個資料夾?

    以及Package preferences的設定我找不到....就是可以設定儲存後自動上傳

    这个插件我用过 貌似不可以创建文件 只能修改 貌似如果有ftp的话只能用上传工具来创建新文件

    声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn核实处理。
    上一篇:为什么打开网页默认是下载了? 下一篇:PHP常量问题:const和define对比、求指教
    20期PHP线上班

    相关文章推荐

    精选22门好课,价值3725元,开通VIP免费学习!• 细思极恐?关于in_array的第3个参数• PHP 编程的 5个良好习惯_php技巧• PHP无限分类的类_php技巧• 超强分页类2.0发布,支持自定义风格,默认4种显示模式_php实例• PHP递归创建多级目录_PHP
    1/1

    PHP中文网