From 416f7f90976bcdd86211625d76aaac65151ec335 Mon Sep 17 00:00:00 2001 From: Dustin Loring Date: Sun, 1 Dec 2024 07:15:25 -0500 Subject: [PATCH 1/2] Update constants.ts --- app/utils/constants.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/app/utils/constants.ts b/app/utils/constants.ts index fcbb3f72..54b78c42 100644 --- a/app/utils/constants.ts +++ b/app/utils/constants.ts @@ -283,9 +283,11 @@ const getOllamaBaseUrl = () => { }; async function getOllamaModels(): Promise { - //if (typeof window === 'undefined') { - //return []; - //} + /* + * if (typeof window === 'undefined') { + * return []; + * } + */ try { const baseUrl = getOllamaBaseUrl(); From 9d826371a6cb2cb4e35391fda6be75c8e0907e62 Mon Sep 17 00:00:00 2001 From: Dustin Loring Date: Sun, 1 Dec 2024 07:17:34 -0500 Subject: [PATCH 2/2] Update docker-compose.yaml --- docker-compose.yaml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 4a3cc0ab..f2412fcb 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,5 +1,5 @@ services: - bolt-ai: + app-prod: image: bolt-ai:production build: context: . @@ -24,12 +24,12 @@ services: - DEFAULT_NUM_CTX=${DEFAULT_NUM_CTX:-32768} - RUNNING_IN_DOCKER=true extra_hosts: - - "host.docker.internal:host-gateway" + - "host.docker.internal:host-gateway" command: pnpm run dockerstart profiles: - - production # This service only runs in the production profile + - production - bolt-ai-dev: + app-dev: image: bolt-ai:development build: target: bolt-ai-development @@ -39,7 +39,7 @@ services: - VITE_HMR_HOST=localhost - VITE_HMR_PORT=5173 - CHOKIDAR_USEPOLLING=true - - WATCHPACK_POLLING=true + - WATCHPACK_POLLING=true - PORT=5173 - GROQ_API_KEY=${GROQ_API_KEY} - HuggingFace_API_KEY=${HuggingFace_API_KEY} @@ -52,7 +52,7 @@ services: - DEFAULT_NUM_CTX=${DEFAULT_NUM_CTX:-32768} - RUNNING_IN_DOCKER=true extra_hosts: - - "host.docker.internal:host-gateway" + - "host.docker.internal:host-gateway" volumes: - type: bind source: . @@ -60,6 +60,6 @@ services: consistency: cached - /app/node_modules ports: - - "5173:5173" # Same port, no conflict as only one runs at a time + - "5173:5173" command: pnpm run dev --host 0.0.0.0 - profiles: ["development", "default"] # Make development the default profile + profiles: ["development", "default"]