Skip to content
This repository has been archived by the owner on Aug 31, 2021. It is now read-only.

folder_mappings

Marcel Kloubert edited this page Dec 26, 2017 · 6 revisions

Home >> Targets >> Folder mappings

Folder mappings

In the following example, all files inside /dist folder of the workspace will be deployed to /my_package_files of the FTP server instead of /my_package_files/dist.

{
    "deploy": {
        "targets": [
            {
                "type": "ftp",

                "host": "ftp.example.com", "port": 21,
                "user": "mkloubert", "password": "P@assword123!",

                "dir": "/my_package_files",

                "mappings": {
                    "/dist/**/*": "/"
                }
            }
        ]
    }
}

You also can use an object with settings:

{
    "deploy.reloaded": {
        "targets": [
            {
                // ...

                "dir": "/my_package_files",

                "mappings": {
                    "/dist/**/*": {
                        "to": "/"
                    }
                }
            }
        ]
    }
}
Name Description
to* The directory on the target machine.
Clone this wiki locally