Reputation: 47
A friend of mine messed up his php website and accidentally deployed the bad code to the website. Is there a way to recover to the last working deployment instance?
Upvotes: 0
Views: 29
Reputation: 41089
If new code was deployed with a new version number, you may be able to set the previous version as default, if it was not deleted.
If new code was deployed with the same version number, it replaced the previous code - there is no way to restore it.
Typically, version control for your source code takes care of this - you cannot rely on a production environment for restoring previous versions.
Upvotes: 2