Memorize whether the user is running a production platform

This commit is contained in:
Régis Behmo 2020-08-19 07:52:07 +02:00
parent 6980550b7c
commit bf0c5e3ed9
2 changed files with 6 additions and 1 deletions

View File

@ -2,6 +2,10 @@
Note: Breaking changes between versions are indicated by "💥".
## Unreleased
- [Improvement] Memorize whether the user is running a production platform during interactive configuration
## v10.2.0 (2020-08-16)
- [Bugfix] Fix incorrect loading of some resources from localhost:18000 in development

View File

@ -28,12 +28,13 @@ def load_all(root, interactive=True):
def ask_questions(config, defaults):
run_for_prod = config.get("LMS_HOST") != "local.overhang.io"
run_for_prod = click.confirm(
fmt.question(
"Are you configuring a production platform? Type 'n' if you are just testing Tutor on your local computer"
),
prompt_suffix=" ",
default=True,
default=run_for_prod,
)
if not run_for_prod:
dev_values = {