Repository navigation
Conversation
A presenter hitting a blank page, a busy port or a restarted emulator had to read three docs to find which. One command now checks all of it and names the fix.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
When the demo does not work, the presenter has to work out which of several things is wrong: the web UI was not built in, the port is taken, an app emulator is down or restarted, or the world is not seeded.
readycovers only the app emulators.Changes
doctorcommand indemos/acme-commerce-lenders. It checks the UI build, that the state file is writable, that the--addrport is free, each app emulator, and whether the seeded world is still held (the same check the UI readiness strip uses). Each failure prints its fix. Exit 1 if any check fails. It changes nothing.<VENDOR>_EMULATOR_VERSION.ui.Built()so the binary can say whether it carries the real UI.docs/troubleshooting.mdnow says to check withdoctorfirst.Tests
go test ./...andgo vet ./...viamake test vet: pass.make kit APP=acme-commerce-lenders ARGS="doctor --addr 127.0.0.1:0"against a real LocalStack with Stripe only: it reported plaid and xero not included with thePLAID_EMULATOR_URLandXERO_EMULATOR_URLfix, the unbuilt UI, and the unseeded world.Related
Follows localstack-samples/localstack-app-emulators PR #21.