Skip to content

Instantly share code, notes, and snippets.

@eyssette
Last active April 4, 2024 10:18
Show Gist options
  • Save eyssette/305147b372f120dd4e6f8bf729a206a9 to your computer and use it in GitHub Desktop.
Save eyssette/305147b372f120dd4e6f8bf729a206a9 to your computer and use it in GitHub Desktop.
VSCode task: FTP upload
{
"version": "2.0.0",
"tasks": [
{
"label": "Upload via FTP",
"type": "shell",
"command": "bash",
// Il faut d'abord se connecter en ssh au serveur :
// ssh -p PORT USER@SERVER
"args": ["-c", "lftp sftp://USER:PASSWORD@SERVER:PORT -e \"set ftp:ssl-allow off;set ftp:passive-mode off; debug; put -O /MY/DIRECTORY/${relativeFileDirname} ${file}; quit\""],
"problemMatcher": [],
"presentation": {
"reveal": "always",
"panel": "dedicated"
},
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment