两个问题:
1、远程开发
使用 Vscode 自带的 Remote - SSH 其实就好了。
不用折腾SFTP。
把文件传输上去,采用ssh连接。
就可以在服务器上写代码了。
极大降低本地的计算压力。
ssh的配置在 /Users/li/.ssh/config 文件中
# Read more about SSH config files: https://linux.die.net/man/5/ssh_config
Host myservser
HostName 49.234.219.93
User root
Port 22
# IdentityFile:"/Users/li/.ssh/remote_ssh_rsa"
HostName 是公网IP。 Host 可以随便写
2、esbuild: Failed to install correctly
这个问题是开发vue的时候遇到的。
网上说是node的一个bug,采用 yarn 包管理解决。