How to rollback App Platform deployments on DigitalOcean
Rollback App Platform deployments by accessing your app's deployment history in the DigitalOcean control panel, selecting a previous stable deployment, and clicking the rollback button. The process preserves your database and environment variables while reverting your application code to the selected version.
Prerequisites
- Active DigitalOcean account with App Platform access
- Existing app with previous deployment history
- Admin or owner permissions for the application
- Basic understanding of DigitalOcean control panel
Step-by-Step Instructions
Access your App Platform dashboard
Navigate to deployment history
Identify the target deployment
Initiate the rollback process
Review rollback details
Confirm and execute rollback
Monitor the rollback deployment
Verify application functionality
Common Issues & Troubleshooting
Rollback option is grayed out or unavailable
Ensure you have sufficient permissions and the target deployment was successful. Only deployments with Success status can be used for rollbacks.
Rollback fails with build errors
Check if your current environment variables or database schema are incompatible with the older code version. You may need to adjust configurations before rolling back.
App shows 502 errors after rollback
Verify that all required environment variables exist and check the Runtime Logs for specific error messages. The older version may expect different configuration values.
Database connections failing after rollback
Ensure the previous code version is compatible with your current database schema. You may need to manually revert recent database migrations or update connection strings.