From 156d4ec3b26b7646640f55af88b5acfcaf62e483 Mon Sep 17 00:00:00 2001 From: Adam Monsen Date: Sat, 10 Feb 2024 21:08:55 -0800 Subject: [PATCH 1/3] fix references to .env.sample --- docker/README.md | 2 +- docs/installation/040_INSTALL_DOCKER.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/README.md b/docker/README.md index c2e26bb9e4..d5a472da7d 100644 --- a/docker/README.md +++ b/docker/README.md @@ -28,7 +28,7 @@ This is done via Docker Desktop preferences ### Configure Invoke environment -1. Make a copy of `env.sample` and name it `.env` (`cp env.sample .env` (Mac/Linux) or `copy example.env .env` (Windows)). Make changes as necessary. Set `INVOKEAI_ROOT` to an absolute path to: +1. Make a copy of `.env.sample` and name it `.env` (`cp .env.sample .env` (Mac/Linux) or `copy example.env .env` (Windows)). Make changes as necessary. Set `INVOKEAI_ROOT` to an absolute path to: a. the desired location of the InvokeAI runtime directory, or b. an existing, v3.0.0 compatible runtime directory. 1. Execute `run.sh` diff --git a/docs/installation/040_INSTALL_DOCKER.md b/docs/installation/040_INSTALL_DOCKER.md index 24f32442de..3814b72e80 100644 --- a/docs/installation/040_INSTALL_DOCKER.md +++ b/docs/installation/040_INSTALL_DOCKER.md @@ -69,7 +69,7 @@ a token and copy it, since you will need in for the next step. ### Setup -Set up your environmnent variables. In the `docker` directory, make a copy of `env.sample` and name it `.env`. Make changes as necessary. +Set up your environmnent variables. In the `docker` directory, make a copy of `.env.sample` and name it `.env`. Make changes as necessary. Any environment variables supported by InvokeAI can be set here - please see the [CONFIGURATION](../features/CONFIGURATION.md) for further detail. From 0be9a2d906c7c1d175226a29d5f6c66720157b51 Mon Sep 17 00:00:00 2001 From: Millun Atluri Date: Sun, 11 Feb 2024 10:42:55 -0700 Subject: [PATCH 2/3] Update string formatting --- installer/lib/messages.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/installer/lib/messages.py b/installer/lib/messages.py index a69337969f..cad5872cc4 100644 --- a/installer/lib/messages.py +++ b/installer/lib/messages.py @@ -82,17 +82,7 @@ def choose_version(available_releases: tuple | None = None) -> str: if available_releases is None: return "stable" - console.print(":grey_question: [orange3]Please choose an Invoke version to install.") - - choices = available_releases[0] + available_releases[1] - - response = prompt( - message=f" to install the recommended release ({choices[0]}). or type to pick a version: ", - complete_while_typing=True, - completer=FuzzyWordCompleter(choices), - ) - - console.print(f" Version {choices[0] if response == "" else response} will be installed.") + console.print(f" Version {choices[0] if response == '' else response} will be installed.") console.line() From 64b0feca3152b29a3f0fe89c9c394cdae2c12578 Mon Sep 17 00:00:00 2001 From: Millun Atluri Date: Sun, 11 Feb 2024 12:00:24 -0700 Subject: [PATCH 3/3] Update ruff --- installer/lib/messages.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/installer/lib/messages.py b/installer/lib/messages.py index cad5872cc4..3e25f7bc30 100644 --- a/installer/lib/messages.py +++ b/installer/lib/messages.py @@ -82,6 +82,15 @@ def choose_version(available_releases: tuple | None = None) -> str: if available_releases is None: return "stable" + console.print(":grey_question: [orange3]Please choose an Invoke version to install.") + + choices = available_releases[0] + available_releases[1] + + response = prompt( + message=f" to install the recommended release ({choices[0]}). or type to pick a version: ", + complete_while_typing=True, + completer=FuzzyWordCompleter(choices), + ) console.print(f" Version {choices[0] if response == '' else response} will be installed.") console.line()