Skip to content

A self-hosted media server and file management system

feat: demo auto reset db

aminnausin75c3c80b738b
diff --git a/routes/console.php b/routes/console.php
index 9ef6dbea..6c1d45a1 100755
--- a/routes/console.php
+++ b/routes/console.php
@@ -6,3 +6,7 @@ use Illuminate\Support\Facades\Schedule;
Schedule::job(new ScheduledIndexFiles)->everySixHours()->environments(['staging', 'production']);
Schedule::command('auth:clear-resets')->everyFifteenMinutes();
Schedule::command('sanctum:prune-expired --hours=2')->daily();
+
+if (app()->environment('demo')) {
+ Schedule::command('demo:reset')->everyFifteenMinutes()->withoutOverlapping();
+}