function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Parteek Goyal 3Parteek Goyal 3 

How to deploy a application in salesforce...

Hi All,

How to deploy a application in salesforce...
Best Answer chosen by Parteek Goyal 3
Sai Ram ASai Ram A
Sure parteek

1. Via eclipse we can deploy but Eclipse will not keep a track of the Classes and Pages which were depolyed earlier . On the Other hand if we use Change Sets then all old deployemnts will be tracked .
2. Change Sets allow the ability to be cloned where as Eclipse doesnt .
3. A silly difference is Eclipse Uses Security Token as it is an 3rd Party System .
4. A change set can only be moved between a live site and its sandbox. Eclipse can be used to move between any orgs like live site and developer org.
5. When using change sets when it deploys it runs all tests of apex code. If you have low covereage or have code that will break with the new components you will not be able to deploy it will fail every time while with Eclipse you can push code without coverage.

Please make it as Best Answer if this resolve your query..

Thank you
BLearn

All Answers

sfdc550sfdc550
Are you looking to deploy an application you created from a sandbox environment to a production environment?


If you want to deploy your Salesforce.com application from one environment to another (e.g. Development to test, Test to Production) you have various options available based on different type of Scenarios. If you want to migrate the entire set of changes you developed / customize you can use tools like Force.com Migration Tool. It is Java/Ant-based command-line utility for moving metadata between a local directory and
a Salesforce organization.

If you are moving from Sandbox to production follow the steps:

Step 0: Connect your Sandbox and Production orgs
Setup >> Deploy >> Deployment Connections 
You’ll only need to do this once!

Step 1: Navigate to the Outbound Change Sets page in Sandbox
Setup >> Deploy >> Outbound Change Sets

Step 2: Add all necessary components to a new change set, then upload to Production

Step 3: Login to your production org, find the Inbound Change Set, and deploy!
Setup >> Deploy >> Inbound Change Sets

Once you hit the “Deploy” button (no need to validate!), you’ll have to wait a few minutes for the changes to go through. Deployment will be completed.

​If this answers you question, please mark it as "Best Answer" so it will help other community members too.
Sai Ram ASai Ram A
Hi Parteek

Salesforce Changeset (Recommended) - https://www.salesforce.com/us/developer/docs/apexcode/Content/apex_qs_deploy.htm
Eclipse
ANT Migration Tool
Package(Optional)

Thank you
BLearn
Parteek Goyal 3Parteek Goyal 3
Hi All,

Can u tell me please..
What is the difference between ecliplse ide and salesforce org. deployment...
Sai Ram ASai Ram A
Sure parteek

1. Via eclipse we can deploy but Eclipse will not keep a track of the Classes and Pages which were depolyed earlier . On the Other hand if we use Change Sets then all old deployemnts will be tracked .
2. Change Sets allow the ability to be cloned where as Eclipse doesnt .
3. A silly difference is Eclipse Uses Security Token as it is an 3rd Party System .
4. A change set can only be moved between a live site and its sandbox. Eclipse can be used to move between any orgs like live site and developer org.
5. When using change sets when it deploys it runs all tests of apex code. If you have low covereage or have code that will break with the new components you will not be able to deploy it will fail every time while with Eclipse you can push code without coverage.

Please make it as Best Answer if this resolve your query..

Thank you
BLearn
This was selected as the best answer
Sai Ram ASai Ram A
Thank you parteek
Matt DickensMatt Dickens
Hi folks,

To offer one more alternative, you can use Gearset Deploy (https://gearset.com) to deploy your salesforce application. It'll you the differences between your source and target orgs, and let you select exactly which objects to deploy. To give you an idea of the steps you'd need to follow:
1. Visit https://gearset.com and download Gearset Deploy
2. Enter your source org details, and the details for the organisation you'd like to deploy to
3. Run the comparison
4. Select the objects you'd like to deploy (note that we build an additive package so you won't lose changes in your target org)
5. Click "Deploy"

Disclaimer: I'm a member of the Gearset team--I'm popping this here in the hope that it might come in useful to somebody else looking to deploy changes between orgs :)

Gearset Deploy comparison result
Gearset Deploy deployment summary