diff options
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | components/storage.rb | 1 |
2 files changed, 2 insertions, 1 deletions
@@ -963,7 +963,7 @@ cd ruby-nano-bots cp docker-compose.example.yml docker-compose.yml ``` -Set your provider credentials and choose your desired directory for the cartridges files: +Set your provider credentials and choose your desired path for the cartridges files: ### Cohere Command Container diff --git a/components/storage.rb b/components/storage.rb index 270cd81..10ea335 100644 --- a/components/storage.rb +++ b/components/storage.rb @@ -37,6 +37,7 @@ module NanoBot def self.build_path_and_ensure_state_file!(key, cartridge, environment: {}) path = [ + Logic::Helpers::Hash.fetch(cartridge, %i[state path]), Logic::Helpers::Hash.fetch(cartridge, %i[state directory]), ENV.fetch('NANO_BOTS_STATE_PATH', nil), ENV.fetch('NANO_BOTS_STATE_DIRECTORY', nil) |