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
kaylonkaylon 

Apex Deploy To Server

Is there anyway to view the previous version of an apex class that has been deployed to production?

Does SF simply overwrite on deployments without backing up the previous class?

 

Thanks.

Anup JadhavAnup Jadhav

That is correct. Salesforce will replace/overwrite he existing file. The best practice is to use tools like version control system like Subversion or Git or Mercurial so that you can track your changes.

 

Using a version control system is very powerful since you can combine it with Continuous Integration server like Hudson and automate the deployment process. It also adds a layer of QA since the CI server will run all of your tests.

 

- Anup