You need to sign in to do that
Don't have an account?
Justin Largey
Best Practices for Version Control Structure and Force.com IDE
Hi,
Are there any best practices when it comes to setting up version control (VC) in conjuction with using the Force.com IDE?
For example, should I make one big project in the Force.com IDE that contains all the meta data on my site and commit that? Then any new classes or triggers should be a part of this project, and committed to VC? Would this mean that for every feature I deploy, the entire site would be deployed, instead of just the changes I made?
I'm curious what everyone else is doing.
Thanks
Are there any best practices when it comes to setting up version control (VC) in conjuction with using the Force.com IDE?
For example, should I make one big project in the Force.com IDE that contains all the meta data on my site and commit that? Then any new classes or triggers should be a part of this project, and committed to VC? Would this mean that for every feature I deploy, the entire site would be deployed, instead of just the changes I made?
I'm curious what everyone else is doing.
Thanks
[1] http://blog.deadlypenguin.com/blog/2014/07/21/using-git-with-salesforce-and-distributed-teams/
All Answers
[1] http://blog.deadlypenguin.com/blog/2014/07/21/using-git-with-salesforce-and-distributed-teams/
Is solenopsis for Unix only? Does it run in Windows? I'm guessing I could do the same thing with the Force.com IDE, albeit, I'm sure an administrator would not want to be opening Eclipse.
And btw, thanks for your help, really appreciate it.
Solenopsis should work on Windows, but we've not tested it, and there are probably some issue regarding path traversing.
We don't use the IDE at all. All of our developers use vim + solenopsis for development.
see: ShowBox (https://showbox.onl/) Mobdro (https://mobdro.onl/) Vidmate (https://vidmate.onl/)
Would this mean that for every feature I deploy, the entire site would be deployed, instead of just the changes I made?
This tends to be a common mistake that many teams made. I've seen many teams gone through the hassle of trying to pick and choose, cherry pick commits because teams are not comfortable with deploying the entire branch. My recommendation, after working with many teams, is that you should deploy everything from a branch to the targeted environment (ie. master -> production) don't pick and choose.
Deploy everything from your git repo and deploy it frequently is the only way to catch issues early and give you the confidence that Git is your living source of truth. Not to mention that this is much easier to automate than pick and choose. And automation is key in source control and CI/CD.
Here is another blog I wrote with everything I learnt after working with many Salesforce devops teams.
https://medium.com/@clickdeploy_team/salesforce-release-management-best-practices-4255ad7c7f63
definitely share a few common best practices with http://blog.deadlypenguin.com/blog/2014/07/21/using-git-with-salesforce-and-distributed-teams/
Hope you'll find something useful in it.