2

I have added a visualforce page, an Apex class and a test class in my developer org, I need to deploy these to sandbox org and subsequently to production org. What are the best practices to do that?

1
  • 2
    changeset is one of the easy and out of box option to do this
    – sf_user
    Mar 1 '16 at 21:27
1

There are two main ways to deploy changes from one sandbox to another (or to production).

  1. Change Sets
  2. Ant based deployment

In your case, you'd be best to use Change Sets.

Change Sets

A Change Set is good for small tactical changes, or when you don't have the infrastructure or knowledge to perform ant based deployment. It's easy to select the components you want to deploy, and easy to set the target org. You don't need to bring code on to your local machine, so using Change Sets mean you can stay 100% in the cloud.

Ant based deployment

And based deployments tend to have a much higher set up time/cost and it's usually central to a different development process. You'd use an Ant based deployment in a larger team or longer term project.
Typically you'd be storing your code on your local machine and pushing changes to a git (or similar) repo. The Ant tools then use this code to deploy to your target org. A benefit of doing it this way is you can automate your deployments and include a CI sandbox/process. It can also make it easier to deploy to multiple sandboxes.

2
  • Thanks so much, I will use Change sets as it is a pretty small deployment. Mar 2 '16 at 16:06
  • My dev org is not connected to sandbox org, so I think I can not use change sets, is that correct? Does that mean I will need to use Ant based deployment? Mar 2 '16 at 20:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.