Wrap values in travis env (#426)

* Wrap values in travis env

* Inline CronService
This commit is contained in:
Nabeel S
2019-10-30 10:23:31 -04:00
committed by GitHub
parent a45770732a
commit 70d43e6e53
3 changed files with 20 additions and 44 deletions
-14
View File
@@ -1,14 +0,0 @@
APP_ENV=prod
APP_KEY=base64:ve66Z5Kt/zTN3p++0zOPu854PHfZkwJE5VuoFAlzHtI=
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=http://localhost
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=phpvms
DB_USERNAME=root
DB_PASSWORD=
CACHE_DRIVER=array
+18 -19
View File
@@ -2,29 +2,28 @@
exit(); exit();
?> ?>
APP_ENV=dev APP_ENV="dev"
APP_KEY=base64:zdgcDqu9PM8uGWCtMxd74ZqdGJIrnw812oRMmwDF6KY= APP_KEY="base64:zdgcDqu9PM8uGWCtMxd74ZqdGJIrnw812oRMmwDF6KY="
APP_URL=http://localhost APP_URL="http://localhost"
APP_SKIN=default APP_SKIN="default"
APP_DEBUG=true APP_DEBUG="true"
APP_LOCALE=en APP_LOCALE="en"
PHPVMS_INSTALLED=true PHPVMS_INSTALLED="true"
VACENTRAL_API_KEY=
APP_LOG=daily APP_LOG="daily"
APP_LOG_LEVEL=debug APP_LOG_LEVEL="debug"
APP_LOG_MAX_FILES=3 APP_LOG_MAX_FILES="3"
DB_CONNECTION=mysql DB_CONNECTION="mysql"
DB_HOST=127.0.0.1 DB_HOST="127.0.0.1"
DB_PORT=3306 DB_PORT="3306"
DB_DATABASE=phpvms DB_DATABASE="phpvms"
DB_USERNAME=root DB_USERNAME="root"
DB_PASSWORD= DB_PASSWORD=
CACHE_DRIVER=file CACHE_DRIVER="file"
CACHE_PREFIX= CACHE_PREFIX=
SESSION_DRIVER=file SESSION_DRIVER="file"
QUEUE_DRIVER=database QUEUE_DRIVER="database"
+2 -11
View File
@@ -8,20 +8,10 @@ use App\Console\Cron\Nightly;
use App\Console\Cron\Weekly; use App\Console\Cron\Weekly;
use App\Services\CronService; use App\Services\CronService;
use Illuminate\Console\Scheduling\Schedule; use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Contracts\Events\Dispatcher;
use Illuminate\Contracts\Foundation\Application;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel; use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel class Kernel extends ConsoleKernel
{ {
private $cronSvc;
public function __construct(Application $app, Dispatcher $events)
{
parent::__construct($app, $events);
$this->cronSvc = app(CronService::class);
}
/** /**
* Define the application's command schedule. * Define the application's command schedule.
* *
@@ -41,7 +31,8 @@ class Kernel extends ConsoleKernel
$schedule->command('backup:run')->daily()->at('02:00'); $schedule->command('backup:run')->daily()->at('02:00');
// Update the last time the cron was run // Update the last time the cron was run
$this->cronSvc->updateLastRunTime(); $cronSvc = app(CronService::class);
$cronSvc->updateLastRunTime();
} }
/** /**