Skip to content

Commit

Permalink
Fix sandbox for real this time
Browse files Browse the repository at this point in the history
  • Loading branch information
kberzinch committed Sep 27, 2024
1 parent a425f73 commit cd5b5ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .nomad/scripts/prestart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions .nomad/scripts/web.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cd5b5ed

Please sign in to comment.