mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-08-04 07:02:13 +00:00
25 lines
560 B
PHP
25 lines
560 B
PHP
<?php
|
|
|
|
use App\Support\Setup\InstallUtils;
|
|
use Illuminate\Support\Facades\Schedule;
|
|
|
|
// Only run in demo environment
|
|
if (config('app.env') === 'demo') {
|
|
Schedule::command('reset:app --force')
|
|
->daily()
|
|
->runInBackground()
|
|
->withoutOverlapping();
|
|
}
|
|
|
|
if (InstallUtils::isDbCreated()) {
|
|
Schedule::command('check:invoices:status')
|
|
->daily();
|
|
|
|
Schedule::command('check:estimates:status')
|
|
->daily();
|
|
|
|
Schedule::command('generate:recurring-invoices')
|
|
->everyMinute()
|
|
->withoutOverlapping(60);
|
|
}
|