Skip to main content
ESC

Searching...

Quick Links

Type to search • Press to navigate • Enter to select

Keep typing to search...

No results found

No documentation matches ""

Reinstalling

How to reinstall the application while preserving data.

Dec 5, 2025

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):

  1. Open your .env file
  2. Find this line:
    APP_IS_INSTALLED=true
    
  3. Change it to:
    APP_IS_INSTALLED=false
    
  4. Save the file
  5. 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

  1. Back up the critical files listed above
  2. Delete all other files and folders
  3. Upload the latest version of Reward Loyalty
  4. Restore your preserved files
  5. Your installation will work with existing data

After Reinstalling

Run any pending database migrations:

  1. Log in as admin
  2. If prompted, click to run database updates
  3. 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:

  1. Go to License & Updates in admin
  2. Click Update Now

This is safer and preserves all your data automatically.