deployship
Docs
Rollbacks

Rollbacks

How to Roll Back

  1. Go to your Project page
  2. Click the History tab
  3. Find a previous deployment with SUCCESS status
  4. Click Rollback

What Happens

A rollback triggers a full new deployment that checks out the specific git commit from the target deployment. The entire deploy pipeline runs — build command, PM2 restart, port verification — against that older commit.

This means rollbacks are reliable but not instantaneous. Expect the same duration as a normal deployment. The rollback itself appears as a new entry in the deployment history so you have a full audit trail.

Rollback Limitations

  • You can only roll back to deployments with SUCCESS status
  • If your build command or start command has changed since that deployment, the current commands are used against the old code
  • Database migrations are not automatically reversed — handle this in your pre-deploy command if needed

Was this page helpful?