How to deploy codebar-auth to Heroku.
The standard workflow. Every merge to main triggers:
- Heroku pulls the latest code
- Build phase installs dependencies
- Release phase runs database migrations
- New dynos start serving traffic
No manual intervention required.
Use only when automatic deploys fail or during incidents requiring immediate hotfixes.
# Break-the-glass: bypass automatic deploys
git push heroku main --forceWarning: Manual deployment bypasses GitHub branch protection and CI checks. Use sparingly.
# Rollback to previous release
heroku releases:rollback
# Rollback to specific version
heroku releases:rollback v42heroku logs --tail # View app logs
heroku ps # Check dyno status
heroku releases # View deployment history