Skip to content

Commit

Permalink
Wrap values in travis env (#426)
Browse files Browse the repository at this point in the history
* Wrap values in travis env

* Inline CronService
  • Loading branch information
nabeelio authored Oct 30, 2019
1 parent a457707 commit 70d43e6
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 44 deletions.
14 changes: 0 additions & 14 deletions .travis/env.travis

This file was deleted.

37 changes: 18 additions & 19 deletions .travis/env.travis.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,28 @@
exit();
?>

APP_ENV=dev
APP_KEY=base64:zdgcDqu9PM8uGWCtMxd74ZqdGJIrnw812oRMmwDF6KY=
APP_URL=http://localhost
APP_SKIN=default
APP_DEBUG=true
APP_LOCALE=en
APP_ENV="dev"
APP_KEY="base64:zdgcDqu9PM8uGWCtMxd74ZqdGJIrnw812oRMmwDF6KY="
APP_URL="http://localhost"
APP_SKIN="default"
APP_DEBUG="true"
APP_LOCALE="en"

PHPVMS_INSTALLED=true
VACENTRAL_API_KEY=
PHPVMS_INSTALLED="true"

APP_LOG=daily
APP_LOG_LEVEL=debug
APP_LOG_MAX_FILES=3
APP_LOG="daily"
APP_LOG_LEVEL="debug"
APP_LOG_MAX_FILES="3"

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=phpvms
DB_USERNAME=root
DB_CONNECTION="mysql"
DB_HOST="127.0.0.1"
DB_PORT="3306"
DB_DATABASE="phpvms"
DB_USERNAME="root"
DB_PASSWORD=

CACHE_DRIVER=file
CACHE_DRIVER="file"
CACHE_PREFIX=

SESSION_DRIVER=file
QUEUE_DRIVER=database
SESSION_DRIVER="file"
QUEUE_DRIVER="database"
13 changes: 2 additions & 11 deletions app/Console/Kernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,10 @@
use App\Console\Cron\Weekly;
use App\Services\CronService;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Contracts\Events\Dispatcher;
use Illuminate\Contracts\Foundation\Application;
use Illuminate\Foundation\Console\Kernel as 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.
*
Expand All @@ -41,7 +31,8 @@ protected function schedule(Schedule $schedule): void
$schedule->command('backup:run')->daily()->at('02:00');

// Update the last time the cron was run
$this->cronSvc->updateLastRunTime();
$cronSvc = app(CronService::class);
$cronSvc->updateLastRunTime();
}

/**
Expand Down

0 comments on commit 70d43e6

Please sign in to comment.