mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-12-12 06:07:56 +00:00
Memorize whether the user is running a production platform
This commit is contained in:
parent
6980550b7c
commit
bf0c5e3ed9
@ -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
|
||||
|
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user