Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/Commands/SyncCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,16 @@ public function handle(
Laritor $laritor
)
{
if (! config('laritor.keys.backend') ) {
$this->error('Laritor key is not configured. Please add the LARITOR_BACKEND_KEY env variable');
return self::FAILURE;
}

if (! config('laritor.ingest_endpoint') ) {
$this->error('Laritor ingest endpoint is not configured. Please add the LARITOR_INGEST_ENDPOINT env variable');
return self::FAILURE;
}

$scheduled_tasks = $scheduledTaskHelper->getScheduledTasks();;

$health_checks = $healthCheckHelper->getHealthChecks();
Expand Down
2 changes: 1 addition & 1 deletion src/LaritorServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class LaritorServiceProvider extends ServiceProvider
*/
public function boot()
{
if ( ! config('laritor.enabled') || !config('laritor.keys.backend') ) {
if ( ! config('laritor.enabled') ) {
return;
}

Expand Down