vscode 配置Ftp详细讲解

使用CTRL+SHIFT+P,输入sftp后安装插件 sftp.config

{
    "name": "My Server",
    "host": "    *.*.*.*.*   ",//服务器的ip
    "protocol": "sftp",      //ftp 或者sftp
    "port": 22,            //端口号
	"username": "账号",
	"password":"你的密码",
    "remotePath": "/www/wwwroot/cs.ttpingtai.com/public/mobile",//服务器目录
	"uploadOnSave": true,
	"context": "dist/build/h5",           //需要上传的路径
	"watcher": {
		"files": "**/*",
		"autoUpload": true,              //是否自动上传
		"autoDelete": false              //是否自动删除
	}
}

猜你喜欢

转载自blog.csdn.net/u010505805/article/details/108713014
今日推荐