Files
usher-manage-stack/app/Console/Commands/NextjsPushAssets.php

23 lines
526 B
PHP

<?php
namespace App\Console\Commands;
use App\Services\NextjsRepoSyncService;
use Illuminate\Console\Command;
class NextjsPushAssets extends Command
{
protected $signature = 'nextjs:push-assets';
protected $description = 'Stage/commit/push Next.js public asset changes (public/uploads and public/images)';
public function handle(): int
{
NextjsRepoSyncService::pushPublicAssets();
$this->info('Done (best-effort). Check logs if nothing happened.');
return self::SUCCESS;
}
}