Skip to content

Commit 53b973e

Browse files
authored
Fix memory issues (#347)
1 parent 4ea5ecf commit 53b973e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

sandbox/scripts/start-bun.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ fi
4949

5050
if [ "$KOSUKE_MODE" = "production" ]; then
5151
echo "📦 Running production build..."
52-
bun run build
52+
NODE_OPTIONS="--max-old-space-size=1024" bun run build
5353
echo "▶️ Starting production server..."
5454
exec bun run start
5555
else

sandbox/scripts/start-python.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ echo "▶️ Starting uvicorn with module: $MAIN_MODULE"
6060
# ============================================================
6161

6262
if [ "$KOSUKE_MODE" = "production" ]; then
63-
exec uvicorn $MAIN_MODULE --host 0.0.0.0 --port 8000 --workers 2
63+
exec uvicorn $MAIN_MODULE --host 0.0.0.0 --port 8000
6464
else
6565
exec uvicorn $MAIN_MODULE --host 0.0.0.0 --port 8000 --reload
6666
fi

0 commit comments

Comments
 (0)