Demo Mode
XetaSuite comes with demo mode disabled by default.
What is demo mode for?
Section titled “What is demo mode for?”This mode is designed to:
- Allow a public demonstration
- Prevent data accumulation
- Ensure an always functional environment
Automatic database reset
Section titled “Automatic database reset”In demo mode, the database is automatically reset every 6 hours via the command:
php artisan demo:resetThis command:
- Deletes all data
- Runs migrations
- Re-seeds demonstration data
Disabling demo mode
Section titled “Disabling demo mode”-
Disable demo mode
In your
.envfile:Terminal window DEMO_MODE=false -
Remove the reset command
Delete the following file:
app/Console/Commands/ResetDemoDatabase.php -
Remove the scheduled task
In
routes/console.php, remove any reference to:Schedule::command('demo:reset')->... -
Configure your backups
Set up your own backup strategies (backups, monitoring, etc.).
Why this mode exists
Section titled “Why this mode exists”Demo mode allows:
- Preventing abuse on the public instance
- Keeping a clean environment for demonstrations
- Freely testing features without consequences