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

Multiple folders to deploy #147

Open
leosolutions opened this issue Oct 18, 2019 · 1 comment
Open

Multiple folders to deploy #147

leosolutions opened this issue Oct 18, 2019 · 1 comment

Comments

@leosolutions
Copy link

Description

We developped 3 themes with the same core and woocommerce files. We setted a Wordpress for each theme and when we are deploying the files on save, we want them to save to the right place. It's working but It's very long.

Actual behavior

Very very long before it's pushing.

Expected behavior

Quickly like when we have only one project like normally

Steps to reproduce

Create folder Core, corpo, creative, theme-child, woocommerce and zen.
Put some files inside to deploy for the test (Ex. 1 file each folder)
Modify a file and save it. It will deploy it to the droplet on DigitalOcean

Example config

{
    "deploy.reloaded": {
        "ignore": [
            "**/.gitignore",
            "**/.vscode/**",
            "**/sftp-config.json",
            "**/README.md",
            "**/codingStandard.md",
            "**/.git/**",
            "**/node_modules/**",
            
        ],
        "packages": [
            {
                "name": "Core",
                "deployOnSave": true,
                "fastCheckOnSave": true,

                "files": [
                    "**/core/**",
                ],
                "targets": ["DigitalOcean-Creative", "DigitalOcean-Corpo", "DigitalOcean-Zen"]
            },
            {
                "name": "Corpo",
                "deployOnSave": true,
                "fastCheckOnSave": true,

                "files": [
                    "**/corpo/**",
                ],
                "targets": ["DigitalOcean-Corpo"]
            },
            {
                "name": "Creative",
                "deployOnSave": true,
                "fastCheckOnSave": true,

                "files": [
                    "**/creative/**",
                ],
                "targets": ["DigitalOcean-Creative"]
            },
            {
                "name": "Zen",
                "deployOnSave": true,
                "fastCheckOnSave": true,

                "files": [
                    "**/zen/**",
                ],
                "targets": ["DigitalOcean-Zen"]
            },
            {
                "name": "Child",
                "deployOnSave": true,
                "fastCheckOnSave": true,

                "files": [
                    "**/leo-child/**",
                ],
                "targets": ["DigitalOcean-Creative", "DigitalOcean-Corpo", "DigitalOcean-Zen"]
            },
            {
                "name": "WooCommerce",
                "deployOnSave": true,
                "fastCheckOnSave": true,

                "files": [
                    "**/woocommerce/**",
                ],
                "targets": ["DigitalOcean-Creative", "DigitalOcean-Corpo", "DigitalOcean-Zen"]
            },
        ],
        "targets": [
            {
                "type": "sftp",
                "name": "DigitalOcean-Corpo",
                "description": "",

                "dir": "/var/www/corpo/wp-content/themes/",
                "host": "corpo.domain.com",
                "port": 22,
                "user": "root",
                "privateKey": "/destination/to/your/ssh/file",
                "mappings": {
                    "/core/**/*": "/corpo/inc/",
                    "/corpo/**/*": "/corpo/",
                    "/woocommerce/**/*": "/corpo/woocommerce/",
                    "/leo-child/**/*": "/leo-child/"
                },
            },
            {
                "type": "sftp",
                "name": "DigitalOcean-Creative",
                "description": "",

                "dir": "/var/www/creative/wp-content/themes/",
                "host": "creative.domain.com",
                "port": 22,
                "user": "root",
                "privateKey": "/destination/to/your/ssh/file",
                "mappings": {
                    "/core/**/*": "/creative/inc/",
                    "/creative/**/*": "/creative/",
                    "/woocommerce/**/*": "/creative/woocommerce/",
                    "/leo-child/**/*": "/leo-child/"
                },
            },
            {
                "type": "sftp",
                "name": "DigitalOcean-Zen",
                "description": "",

                "dir": "/var/www/Zen/wp-content/themes/",
                "host": "zen.domain.com",
                "port": 22,
                "user": "root",
                "privateKey": "/destination/to/your/ssh/file",
                "mappings": {
                    "/core/**/*": "/zen/inc/",
                    "/zen/**/*": "/zen/",
                    "/woocommerce/**/*": "/zen/woocommerce/",
                    "/leo-child/**/*": "/leo-child/"
                },
            },
            }
        ]
    }
}

Logs

// write log messages here, if possible

// maybe one or more log files are available
// in sub folder '.vscode-deploy-reloaded/.logs'
// inside your home directory

Screenshot

{Please write here, if possible}

Your environment

  • Operating system: {Please write here}
  • Visual Studio Code version: {Please write here}
  • Extension version: {Please write here}

Additional comments

{Please write here, if there is something more to tell}

@bavarianbytes
Copy link

Same here. Any solutions yet?

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

No branches or pull requests

2 participants