title(__('Initialize AzuraCast')); $io->writeln(__('Initializing essential settings...')); $io->listing( [ sprintf( __('Environment: %s'), $this->environment->getAppEnvironmentEnum()->getName() ), sprintf( __('Installation Method: %s'), $this->environment->isDocker() ? 'Docker' : 'Ansible' ), ] ); $io->newLine(); $io->section(__('Running Database Migrations')); $this->runCommand( $output, 'migrations:migrate', [ '--allow-no-migration' => true, ] ); $io->newLine(); $io->section(__('Generating Database Proxy Classes')); $this->runCommand($output, 'orm:generate-proxies'); $io->newLine(); $io->section(__('Reload System Data')); $this->runCommand($output, 'cache:clear'); // Ensure default storage locations exist. $this->storageLocationRepo->createDefaultStorageLocations(); // Pull Acme certificates if necessary. try { $this->acme->getCertificate(); } catch (\Exception) { // Noop } $io->newLine(); $io->success( [ __('AzuraCast is now initialized.'), ] ); return 0; } }