diff --git a/be/app/Console/Kernel.php b/be/app/Console/Kernel.php index 7ac638e..ff72b68 100644 --- a/be/app/Console/Kernel.php +++ b/be/app/Console/Kernel.php @@ -24,6 +24,15 @@ class Kernel extends ConsoleKernel $schedule->command('karat:sync-timesheets')->everyFiveMinutes(); } + if (env('APP_ENV') === 'prod' && env('LXC') === '1') { +// $schedule->command('karat:sync-timesheets')->everyFiveMinutes(); + $schedule->command('intranet:sync-vacations')->twiceDaily(); + $schedule->command('karat:sync-users')->daily(); + $schedule->command('karat:sync-clients')->hourly(); + $schedule->command('karat:sync-projects')->hourly(); + $schedule->command('karat:sync-timesheets')->everyFiveMinutes(); + } + } /** diff --git a/be/app/Services/Karat/Api.php b/be/app/Services/Karat/Api.php index 7419e19..57c3b04 100644 --- a/be/app/Services/Karat/Api.php +++ b/be/app/Services/Karat/Api.php @@ -29,7 +29,7 @@ class Api private static function doRequest($body) { - $response = Http::timeout(60) + $response = Http::timeout(300) ->withOptions([ 'debug' => true, 'verify' => false, diff --git a/be/config/services.php b/be/config/services.php index 5c3c932..d07f756 100644 --- a/be/config/services.php +++ b/be/config/services.php @@ -34,7 +34,7 @@ return [ 'karat' => [ 'username' => env('KARAT_USERNAME'), 'password' => env('KARAT_PASSWORD'), - 'endpoint' => 'https://86.110.228.181:39001/service', + 'endpoint' => 'http://86.110.228.181:39001/service', ], 'intranet' => [