- Backup current website files
- Backup current database
- Test all changes locally
- Update requirements.txt if needed
-
app.py(SQLAlchemy 2.0 updates) -
routes/user.py(Enhanced registration) -
routes/checkout.py(Enhanced checkout with delivery) -
routes/payment.py(PesaPal integration fixes) -
templates/register.html(NEW enhanced form) -
templates/checkout.html(Enhanced checkout UI) -
models/user.py(Enhanced User model) -
wsgi.py(Production entry point) -
requirements.txt(Dependencies)
- Run
python migrate_database.pyon server - Verify new user table columns added
- Test user registration with new fields
- Update
.envwith production values:-
FLASK_ENV=production -
FLASK_DEBUG=False -
PESAPAL_BASE_URL=https://pay.pesapal.com/pesapalv3 - Production database credentials
- Secure SECRET_KEY
-
- Verify PesaPal account is production-ready
- Register IPN endpoint:
python setup_ipn.py - Update
.envwith production IPN_ID - Test payment flow with small amount
- Run
python test_production_deployment.py - Test enhanced registration form
- Test checkout with delivery details
- Test PesaPal payment integration
- Verify SSL certificate is working
- Check all static resources load
- Homepage loads without errors
- Registration shows 3-section form
- Checkout captures delivery details
- Payments process through PesaPal
- User profiles save all fields
- No 500 errors in any section
- Restore backed up files
- Restore backed up database
- Verify old version works
- Document issues for later fix
Last Updated: July 29, 2025
Target: denncathy.co.ke via Host Africa