wadewegner / deploy-to-sfdx

An open-source and community-driven tool for one-click Salesforce DX deployments from public repositories to Scratch Orgs
https://deploy-to-sfdx.com
Apache License 2.0
98 stars 22 forks source link

GUID: 0bdeb43e-9115-4b00-4fb3-89e5bb55cb47 ERROR: ENOENT: no such file or directory, open 'config/project-scratch-def.json'. #46

Open vektor-knight opened 6 years ago

vektor-knight commented 6 years ago

When deploying directly to SF

GUID: 0bdeb43e-9115-4b00-4fb3-89e5bb55cb47 ERROR: ENOENT: no such file or directory, open 'config/project-scratch-def.json'.

4) GUID: 0bdeb43e-9115-4b00-4fb3-89e5bb55cb47 ERROR: ENOENT: no such file or directory, open 'config/project-scratch-def.json'. 3) Set instance url to https://uss-serenity-123815.my.salesforce.com. 2) Successfully cloned https://github.com/kevinohara80/sfdc-trigger-framework. 1) No .salesforcedx.yaml found in repository. Using defaults.

FabienTaillon commented 6 years ago

To use deploy to sfdx, you need to have a .salesforcedx.yaml file in your repo as explained here. There is no such file in the repo you're trying to deploy even though the button has been added.

You should create an issue on the repor to ask him to add the file or add it yourself via a pull request.

vektor-knight commented 6 years ago

Thanks, figured it was that simple. It was my understanding that his framework may have had a contrived example builtin, which would have triggered on deployment.

wadewegner commented 6 years ago

Yes, it does have some built-in capabilities and it will make assumptions. The one missing here is that if it can't find the yml file it will look for a default config/project-scratch-def.json in the source. In this case, the repo doesn't appear to have one, so it fails.

This isn't a bad thing to enhance. -- i.e. if it doesn't find one, use a default.