Commit 738f9dc
fix: don't overwrite config on non-interactive local launch
PR #1375 added a branch in interactive_configuration that applies dev
defaults (LMS_HOST, CMS_HOST, ENABLE_HTTPS) whenever run_for_prod is
falsy. For `tutor local launch --non-interactive`, run_for_prod is
None, which is also falsy, so those three keys get clobbered to dev
values on every launch — breaking production deployments that set
them via `tutor config save --set ...` beforehand.
Tighten the check to `run_for_prod is False` so only the explicit
dev case (set in the launch command for context_name == "dev")
triggers the defaults.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 5afc18f commit 738f9dc
2 files changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | | - | |
| 231 | + | |
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
| |||
0 commit comments