hfloyd / Dragonfly.Umbraco9DeployTools

Tools to compare Content and Media across Umbraco Deploy environments
MIT License
1 stars 0 forks source link

On-prem #1

Open Abrissirba opened 1 year ago

Abrissirba commented 1 year ago

Hi

I am using umbraco deploy in a project and currently looking for a way to create a report of all diifs in content between to environments. Not sure if this package can help me but it might at least be a good starting point :)

However, we run on prem so when I made a quick test by installing the nuget package I got an error saying that the file umbraco-file.json is missing.

Would it be possible to use this package on prem aswell?

hfloyd commented 1 year ago

Hi @Abrissirba ! If I recall correctly, the umbraco-cloud.json is used to provide the list of available environments for comparison. The structure is like this:


{
    "Deploy": {
        "Project": {
            "Name": "CLOUD PROJECT NAME",
            "Alias": "CLOUD_ALIAS",
            "Id": "PROJECT GUID",
            "Workspaces": [
                {
                    "Id": "WS GUID",
                    "Name": "Development",
                    "Type": "development",
                    "Url": "https://CLOUD_ALIAS.euwest01.umbraco.io"
                },
                {
                    "Id": "WS GUID",
                    "Name": "Live",
                    "Type": "live",
                    "Url": "https://CLOUD_ALIAS.euwest01.umbraco.io"
                }
            ]
        }
}
}

Notice the "Workspaces" data. As a test you could add a file with this JSON structure to your project, named "umbraco-cloud.json", and put in your own information.

I'd imagine there is nothing preventing the package from working on-prem (other than that missing cloud data file to provide the list of Workspaces) It would be great if this package could support on-prem. I just don't have access to an on-prem setup myself.

What is the file name for on-prem that holds the list of environments? I'm sure we could have the code check for the Cloud file, and if not found, check for the on-prem file.