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

Deploy A Directory As The Base Directory #66

Closed
allendotson opened this issue May 6, 2017 · 4 comments
Closed

Deploy A Directory As The Base Directory #66

allendotson opened this issue May 6, 2017 · 4 comments

Comments

@allendotson
Copy link

I am looking to deploy a build directory, via FTP, without transferring the build directory itself... just the contents. Is this possible?

@mkloubert
Copy link
Owner

@telekovar

Can you give me an example?

@allendotson
Copy link
Author

allendotson commented May 6, 2017

Locally, you have a "Source" directory, and a "Dist" directory. I'm uploading via FTP to a remote directory "website.com". I am seeking to upload the contents of "Dist" into that remote directory, instead of creating a new "website.com/dist" to upload into.

@mkloubert
Copy link
Owner

mkloubert commented May 8, 2017

@telekovar

I seems you only need a folder mapping for the /dist folder:

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

                // ...

                "mappings": [
                    {
                        "source": "/dist",
                        "target": "/"
                    }
                ]
            }
        ]
    }
}

@allendotson
Copy link
Author

@mkloubert
That is exactly what I'm looking for. Thank you so much for your assistance in this. 👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants