建筑工作空间与在沙箱中的代码部署中的日食中上传墨盒
我正在从Eclipse上部署代码,这是Salesforce开发的新手。 在日食中构建工作空间和上载墨盒之间的区别是什么? 感谢我能获得的所有帮助,谢谢
I am deploying a code over sandbox from eclipse, I'm new to salesforce development.
what is the diff between building workspace and uploading cartridges in eclipse.
I appreciate all the help that i can get, thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Salesforce文档中没有“ Cartidges”。您确定正在开发Salesforce代码吗?也许您正在研究一些Java集成?也许您是说包装?带有package.xml和源代码的zip文件?
Eclipse开发模型现在已经过时了,所有酷孩子都转移到SFDX + Visual Studio代码。您正在做的事情仍然有效(它使用“元数据API”),但是您有意识地使用旧工具,剥夺了更新,更快的玩具。您可以在 https://develveper.salesforce.com/docs/atlas.en-us.api_meta.meta.meta/api_meta/api_meta/meta_intro.htm
现在...如果您问:沙盒我只能直接编辑类/触发器并保存“ ...嗯 - 您不能在生产中。即使在设置中,按钮根本不存在,您也不能直接在生产上编辑代码。它必须是一个可部署的软件包,必须在部署过程中运行单位测试(它们需要通过,代码覆盖率必须至少为75%)。因此,当您真的准备好去prod时,您就可以制作包裹
There are no "cartidges" in Salesforce documentation. Are you sure you're developing salesforce code? Maybe you're working on some Java integration? Or maybe you mean packages? zip files with package.xml and source code?
And Eclipse development model is outdated now, all the cool kids moved on to sfdx + visual studio code. What you're doing still works (it uses "metadata api") but you're consciously using old tools, depriving yourself from newer, faster toys. You can read more about metadata api style of deployments in https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_intro.htm
Now... If you ask about "why do I bother with doing deployments if in sandbox I can just edit the class/trigger directly and save"... well - you can't in production. You can't just go and edit code straight on production, even in the setup the button simply isn't there. It has to be a deployable package, it has to run unit tests during deploy (they need to pass, the code coverage has to be at least 75%). So you make a package when you're really ready to go to prod