launcher api
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user