Repository navigation
How do I run a debug build against a server on my laptop, next to the installed app? #614
Answered
by
lumenpearson
lumenpearson
asked this question in
Q&A
|
I run the server locally and want to try my app changes against it, on a phone on the same Wi-Fi or in the emulator. The release APK is already installed on that phone, and I don't want to lose it. |
Answered by
lumenpearson
Oct 17, 2026
Replies: 1 comment
|
Use the debug build. Its application id ends in
Limits:
More: https://github.com/lumenpearson/lessons/blob/main/docs/build.md#pointing-the-app-at-a-server and https://github.com/lumenpearson/lessons/blob/main/docs/build.md#why-a-debug-build-speaks-http-and-a-release-build-does-not |
0 replies
Answer selected by
lumenpearson
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Use the debug build. Its application id ends in
.debugand its version in-debug, so it installs beside a release install instead of over it. It is also the only build that can speak plainhttp://to any host.server/.RUN_BOT=falsein.envis enough for the app.python -m scripts.seed_demomakes a class with the codeDEMO24. Then run:.venv/bin/python -m uvicorn app.main:app --host 0.0.0.0 --port 8000--host 0.0.0.0is required, since by default the server listens on the laptop's loopback only.android/: run./gradlew :app:installDebug. Android Studio has the same command as a shared run configuration in.run/when you open the repository root.