Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
DevOps for Salesforce

You're reading from  DevOps for Salesforce

Product type Book
Published in Sep 2018
Publisher
ISBN-13 9781788833349
Pages 220 pages
Edition 1st Edition
Languages
Concepts
Authors (2):
Priyanka Dive Priyanka Dive
Profile icon Priyanka Dive
Nagraj Gornalli Nagraj Gornalli
Profile icon Nagraj Gornalli
View More author details
Toc

Table of Contents (14) Chapters close

Title Page
Packt Upsell
Contributors
Preface
1. Salesforce Development and Delivery Process 2. Applying DevOps to Salesforce Applications 3. Deployment in Salesforce 4. Introduction to the Force.com Migration Tool 5. Version Control 6. Continuous Integration 7. Continuous Testing 8. Tracking Application Changes and the ROI of Applying DevOps to Salesforce 1. Other Books You May Enjoy Index

Traditional deployment


There are two ways to deploy code to test in a sandbox or production environment:

  • Change sets: A change set is used to move changes from a development sandbox to a production environment. Change sets do not contain data. Change sets are best for deploying the same components to multiple organizations. Change sets are good for small deployments, but not preferred for large deployments. The Force.com Migration Tool can be used for large deployments as deployment components can be easily managed.
  • Force.com Migration Tool: Using the Force.com Migration Tool requires some setup. It is scriptable, so it is used for a multistage release process, where we can easily have scripted retrieval and deployment of components. Repetitive deployments using the parameters can be done. We can retrieve all metadata in the organization, make changes using the editor, and deploy the same subset of components.

Issues with traditional deployment

No versioning is provided in a sandbox environment, so it becomes difficult when multiple developers are working on a project and are not in sync. Keeping track of all changes in project can look like finding a needle in a haystack. Deployment with a change set is not recommended for large projects and creating a change set is not scriptable. So it becomes a repetitive task.

The Force.com Migration Tool is good for large projects, but we do not have versioning, so we cannot revert code to its previous version. Also, we are not able to track changes done by developers. 

We have different environments, such as development, test, stage, and production, in almost all technical stacks. In Salesforce, we use a sandbox for development and test environments. Sandboxes come in different types as per our requirement, and we can choose which sandbox to use. Let's look at the different types of sandboxes. 

You have been reading a chapter from
DevOps for Salesforce
Published in: Sep 2018 Publisher: ISBN-13: 9781788833349
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}