Reinstalling
How to reinstall the application while preserving data.
Sometimes you need to reinstall Reward Loyalty—for database changes, fresh starts, or troubleshooting. This guide covers both scenarios.
Fresh Installation
To start completely fresh (removes all data):
- Open your
.envfile - Find this line:
APP_IS_INSTALLED=true - Change it to:
APP_IS_INSTALLED=false - Save the file
- Visit your domain
The installation wizard will appear. All previous data will be replaced when you complete installation.
Preserving User Data
To reinstall while keeping existing data, preserve these items:
Critical Files
| Item | Location | Contains |
|---|---|---|
| Environment | .env |
All settings and encryption key |
| SQLite Database | database/database.sqlite |
All your data (if using SQLite) |
| User Uploads | public/files/ |
Images and uploads |
| Custom Files | Various | Any files you've modified |
Do not delete these files.
Reinstall Process
- Back up the critical files listed above
- Delete all other files and folders
- Upload the latest version of Reward Loyalty
- Restore your preserved files
- Your installation will work with existing data
After Reinstalling
Run any pending database migrations:
- Log in as admin
- If prompted, click to run database updates
- Clear caches if needed
When to Reinstall
Fresh install when:
- Starting over from scratch
- Testing the installation process
- Creating a new environment
Preserve data when:
- Updating core files manually
- Troubleshooting file corruption
- Applying hotfixes
One-Click Updates Preferred
For normal updates, use the built-in update system instead of reinstalling:
- Go to License & Updates in admin
- Click Update Now
This is safer and preserves all your data automatically.