launcher api

This commit is contained in:
2026-03-21 17:53:03 +04:00
parent 269255e04f
commit a7c5b36588
22 changed files with 2264 additions and 80 deletions
+13
View File
@@ -208,6 +208,19 @@ main() {
log "Выполняю миграции"
app_exec php artisan migrate --force
log "Настраиваю Passport"
if [[ ! -f "${ROOT_DIR}/storage/oauth-private.key" ]]; then
app_exec php artisan passport:keys --force
log "Сгенерированы ключи Passport"
fi
if ! app_exec php artisan passport:client --personal --no-interaction 2>/dev/null | grep -q 'already exists'; then
app_exec php artisan passport:client --personal --name="Launcher" --no-interaction
log "Создан Personal Access Client «Launcher»"
else
log "Personal Access Client уже существует"
fi
if (( WARM_CACHE )); then
log "Обновляю Laravel-кэш"
app_exec php artisan optimize:clear