docker improvements

This commit is contained in:
2025-09-19 12:22:14 -05:00
parent ea56d33472
commit 385084dd7b
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -72,7 +72,7 @@ class InMemoryQCounter
#couch_settings = YAML.load_file(couch_settings_path)[environment]
couch_settings = YAML.safe_load(ERB.new(File.read(couch_settings_path)).result, permitted_classes: [Symbol])[environment]
database = couch_settings['database']
database = database.sub 'localhost', 'host.docker.internal' unless environment == 'development'
#database = database.sub 'localhost', 'host.docker.internal' unless environment == 'development'
#database = couch_settings['database']
#database = couch_settings['database'].sub 'localhost', '172.17.0.1'
db = CouchRest.database(database) # for debug: db = CouchPotato.database.couchrest_database