From cd5b5ed2c5e1f921b6d8d10298f5495d20920277 Mon Sep 17 00:00:00 2001 From: Kristaps Berzinch Date: Fri, 27 Sep 2024 00:32:55 -0400 Subject: [PATCH] Fix sandbox for real this time --- .nomad/scripts/prestart.sh | 2 +- .nomad/scripts/web.sh | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.nomad/scripts/prestart.sh b/.nomad/scripts/prestart.sh index eadd2c841..effd74984 100644 --- a/.nomad/scripts/prestart.sh +++ b/.nomad/scripts/prestart.sh @@ -5,7 +5,7 @@ then php artisan migrate --no-interaction --force --verbose php artisan tinker --no-interaction --verbose --execute "\App\Models\OAuth2Client::create(['id' => '95158a03-4ce9-489d-9550-05655f9f27eb', 'redirect' => 'org.robojackets.apiary://oauth', 'name' => 'Android App', 'personal_access_client' => false, 'password_client' => false, 'revoked' => false]);" export PASSPORT_PERSONAL_ACCESS_CLIENT_SECRET=$(php artisan tinker --no-interaction --verbose --execute "echo ((new \\Laravel\\Passport\\ClientRepository())->createPersonalAccessClient(null, 'Personal Access Client', 'http://localhost'))->plainSecret") - export PASSPORT_PERSONAL_ACCESS_CLIENT_ID=$(php artisan tinker --no-interaction --verbose --execute "echo \\Laravel\\Passport\\Passport::client()->sole()->getKey()") + export PASSPORT_PERSONAL_ACCESS_CLIENT_ID=$(php artisan tinker --no-interaction --verbose --execute "echo \\Laravel\\Passport\\Passport::client()->where('personal_access_client', true)->sole()->getKey()") fi php artisan config:validate --no-interaction --verbose php artisan config:cache --no-interaction --verbose diff --git a/.nomad/scripts/web.sh b/.nomad/scripts/web.sh index c720f6a3e..48e1200fb 100644 --- a/.nomad/scripts/web.sh +++ b/.nomad/scripts/web.sh @@ -5,6 +5,8 @@ then export APP_KEY=$(php artisan key:generate --show --verbose) php artisan migrate --no-interaction --force --verbose php artisan tinker --no-interaction --verbose --execute "\App\Models\OAuth2Client::create(['id' => '95158a03-4ce9-489d-9550-05655f9f27eb', 'redirect' => 'org.robojackets.apiary://oauth', 'name' => 'Android App', 'personal_access_client' => false, 'password_client' => false, 'revoked' => false]);" + export PASSPORT_PERSONAL_ACCESS_CLIENT_SECRET=$(php artisan tinker --no-interaction --verbose --execute "echo ((new \\Laravel\\Passport\\ClientRepository())->createPersonalAccessClient(null, 'Personal Access Client', 'http://localhost'))->plainSecret") + export PASSPORT_PERSONAL_ACCESS_CLIENT_ID=$(php artisan tinker --no-interaction --verbose --execute "echo \\Laravel\\Passport\\Passport::client()->where('personal_access_client', true)->sole()->getKey()") export BUZZAPI_APP_ID=$(openssl rand -hex 32) export BUZZAPI_APP_PASSWORD=$(openssl rand -hex 32) fi