Last active
April 4, 2024 10:18
-
-
Save eyssette/305147b372f120dd4e6f8bf729a206a9 to your computer and use it in GitHub Desktop.
VSCode task: FTP upload
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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