Added hint to set cron command in dashboard panel when cron is not set correctly

This commit is contained in:
Čarodej
2022-06-27 19:29:34 +02:00
parent e274088b71
commit 4cafb726df
7 changed files with 25 additions and 36 deletions

View File

@@ -38,7 +38,13 @@ class GetDashboardDataController extends Controller
],
],
'app' => [
'isRunningCron' => isRunningCron(),
'cron' => [
'isRunning' => isRunningCron(),
'command' => [
'shared' => PHP_BINARY . ' ' . base_path() . '/artisan schedule:run >> /dev/null 2>&1',
'vps' => '* * * * * cd ' . base_path() . ' && ' . PHP_BINARY . ' artisan schedule:run >> /dev/null 2>&1',
],
],
'license' => get_settings('license'),
'version' => config('vuefilemanager.version'),
'earnings' => format_currency($totalEarnings, 'USD'), // todo: refactor currency to global setup or plan currency