From cf7c7f328a8c80674acbfa2a06b1fd61f1ca516c Mon Sep 17 00:00:00 2001 From: Dustin Loring Date: Sun, 1 Dec 2024 11:43:54 -0500 Subject: [PATCH 1/2] improved start --- package.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 5e859227..75a7d98d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bolt", - "description": "StackBlitz AI Agent", + "description": "An AI Agent", "private": true, "license": "MIT", "sideEffects": false, @@ -13,7 +13,9 @@ "test:watch": "vitest", "lint": "eslint --cache --cache-location ./node_modules/.cache/eslint app", "lint:fix": "npm run lint -- --fix && prettier app --write", - "start": "bindings=$(./bindings.sh) && wrangler pages dev ./build/client $bindings", + "start:windows": "wrangler pages dev ./build/client", + "start:unix": "bindings=$(./bindings.sh) && wrangler pages dev ./build/client $bindings", + "start": "node -e \"const { spawn } = require('child_process'); const isWindows = process.platform === 'win32'; const cmd = isWindows ? 'npm run start:windows' : 'npm run start:unix'; const child = spawn(cmd, { shell: true, stdio: 'inherit' }); child.on('exit', code => process.exit(code));\"", "dockerstart": "bindings=$(./bindings.sh) && wrangler pages dev ./build/client $bindings --ip 0.0.0.0 --port 5173 --no-show-interactive-dev-session", "dockerrun": "docker run -it -d --name bolt-ai-live -p 5173:5173 --env-file .env.local bolt-ai", "dockerbuild:prod": "docker build -t bolt-ai:production -t bolt-ai:latest --target bolt-ai-production .", From 6a4fd7ea3db12b7c2ce53461ee366c877b8da99a Mon Sep 17 00:00:00 2001 From: Dustin Loring Date: Sun, 1 Dec 2024 12:29:15 -0500 Subject: [PATCH 2/2] fixed typo --- docker-compose.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 2a5e0179..0c9acd09 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -11,7 +11,7 @@ services: environment: - NODE_ENV=production - COMPOSE_PROFILES=production - # No strictly neded but serving as hints for Coolify + # No strictly needed but serving as hints for Coolify - PORT=5173 - GROQ_API_KEY=${GROQ_API_KEY} - HuggingFace_API_KEY=${HuggingFace_API_KEY}