Don't forget to Like and Subscribe & Share This Video & comment below. Thanks ♥ Subscribe RADAS ♥ : / @radas_official
How To Deploy Files From Workspace to a Destination Use Visual Studio Code
Syntax setting.json:
{
"deploy": {
"targets": [
{
"type": "sftp",
"name": "Deploy to Target SFTP Directory",
"description": "Deploy to Source Directory to Target SFTP Directory",
"dir": "path_to_target_directory",
"host": "ip_address", "port": 22,
"user": "username", "password": "password",
"checkBeforeDeploy": true,
"mappings": [
{
"source": "path_to_source_directory",
"target": "path_to_target_directory"
}
]
},
]
}
}
Example setting.json:
{
"deploy": {
"targets": [
{
"type": "sftp",
"name": "Deploy to Target SFTP Directory",
"description": "Deploy to Source Directory to Target SFTP Directory",
"dir": "/home/radas/Documents",
"host": "192.168.1.25", "port": 22,
"user": "radas", "password": "radas",
"checkBeforeDeploy": true,
"mappings": [
{
"source": "D:/Tmp",
"target": "/home/radas/Documents"
}
]
},
]
}
}
Full Playlist:
Please send feedback to my email: [email protected] if you have any problems.
Good lucky!
Thank you so much.