FoodFeast — Upgrade, Maintenance & Migration Protocol
FoodFeast — Upgrade, Maintenance & Migration Protocol
FoodFeast — Upgrade, Maintenance & Migration Protocol
On this page
This guide outlines the standard operating procedure for upgrading your FoodFeast installation when new updates, bug fixes, or feature enhancements are released on CodeCanyon.
1. Safety First: The Pre-Upgrade Backup Protocol
NEVER attempt an upgrade on a live server without creating full backups first.
1.1 Step 1: Database Backup
Take a complete snapshot of your MySQL database:
# Export the active database to a timestamped SQL dump
mysqldump -u your_db_user -p your_db_name > backup_foodfeast_db_$(date +%F_%T).sql
1.2 Step 2: Media and Configuration Backup
Archive your customer uploads and environment configuration:
# Archive media uploads
tar -czvf backup_storage_uploads_$(date +%F).tar.gz Source_Code/Foodfeast-Laravel-Dashboard-v1/storage/app/public/
# Backup your environment file
cp Source_Code/Foodfeast-Laravel-Dashboard-v1/.env backup_env_$(date +%F).env
2. File Replacement Rules: What to Replace vs. What to NEVER Overwrite
When extracting a new update package over your existing server installation, follow these strict boundaries:
| File / Folder | Rule | Reason |
|---|---|---|
.env |
❌ NEVER OVERWRITE | Contains your live database passwords, app key, and payment API secrets. Overwriting this will break your website. |
storage/app/public/ |
❌ NEVER OVERWRITE | Contains all uploaded restaurant logos, dish pictures, and banner images. |
app/, routes/, resources/ |
✅ REPLACE | Contains core Laravel application logic, API endpoints, controllers, and Blade templates. |
database/migrations/ |
✅ ADD / REPLACE | Contains schema modifications required for new database tables or columns. |
composer.json & composer.lock |
✅ REPLACE | Contains updated PHP package dependencies and security patches. |
public/assets/ |
✅ REPLACE | Contains updated frontend styling, JavaScript, and admin UI enhancements. |
3. Post-Upgrade Terminal Commands
After uploading new files to your server, execute these commands in your Laravel root directory:
# 1. Put the application in maintenance mode (optional, recommended for major updates)
php artisan down --secret="foodfeast-upgrade"
# 2. Update backend PHP dependencies
composer install --no-dev --optimize-autoloader
# 3. Run any new database migrations automatically
php artisan migrate --force
# 4. Clear all previous application and route caches
php artisan optimize:clear
# 5. Re-generate production performance caches
php artisan config:cache
php artisan route:cache
php artisan view:cache
# 6. Bring the application back online
php artisan up
4. Mobile App (Flutter) Upgrade Protocol
When updating the customer app:
- Navigate to
Source_Code/Foodfeast_user_app. - Ensure your
baseUrlinlib/app/constants/app_constants.dartpoints to your live server. - Increment the version number in
pubspec.yaml(e.g. fromversion: 1.0.0+1toversion: 1.0.1+2). - Run:
flutter clean flutter pub get flutter build appbundle --release # For Google Play flutter build ipa --release # For Apple App Store
5. Version History & Migration Matrix
Release v1.0.0 (Initial CodeCanyon Release)
| Attribute | Details |
|---|---|
| Release Version | v1.0.0 (Initial Launch) |
| Release Date | October 2026 |
| Key Highlights | Initial commercial release of FoodFeast Multivendor Food Delivery ecosystem. Full Laravel 12 Admin & Vendor Portal, responsive customer website, cross-platform Flutter mobile customer application, PayPal & Stripe checkout, live Google Maps order tracking, polygon delivery geofencing, and digital customer wallet. |
| Changed Files | Base commercial release. |
| New Migrations | Initial schema loaded via database/foodfeast_db.sql. |
| New / Changed Configs | Baseline .env.example configurations established. |
| Rollback Steps | Restore server from baseline snapshot or re-import foodfeast_db.sql. |
Template for Future Releases (e.g., v1.1.0)
| Attribute | Details |
|---|---|
| Release Version | v1.X.X |
| Release Date | YYYY-MM-DD |
| Key Highlights | Summary of added features, performance improvements, and fixes. |
| Changed Files | List of specific files updated in this release. |
| New Migrations | php artisan migrate (e.g., 2026_XX_XX_add_custom_feature.php). |
| New Config Keys | Any new .env variables introduced in this version. |
| Rollback Steps | php artisan migrate:rollback --step=1 and restore file backup. |
6. Emergency Rollback Procedure
If an upgrade fails unexpectedly:
- Put the server in maintenance mode:
php artisan down. - Restore your backed-up database:
mysql -u your_db_user -p your_db_name < backup_foodfeast_db_YYYY-MM-DD.sql - Restore your backed-up
.envfile:cp backup_env_YYYY-MM-DD.env .env - Re-run
php artisan optimize:clearand bring the site online withphp artisan up.