Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
feat: modify `startup.sh` to work for sqlite (#2012)
Sarah Wooders4cf0649ce423
diff --git a/letta/server/startup.sh b/letta/server/startup.shindex 870bc0e45..e0556f708 100755--- a/letta/server/startup.sh+++ b/letta/server/startup.sh@@ -1,11 +1,17 @@#!/bin/sh-echo "Starting MEMGPT server..."+echo "Starting Letta server at http://localhost:8283"-alembic upgrade head+# Check if LETTA_PG_URI or LETTA_PG_DB is set and run alembic upgrade if either is+if [ -n "$LETTA_PG_URI" ] || [ -n "$LETTA_PG_DB" ]; then+ echo "LETTA_PG_URI or LETTA_PG_DB is set, running alembic upgrade head"+ alembic upgrade head+fi-if [ "$MEMGPT_ENVIRONMENT" = "DEVELOPMENT" ] ; then+if [ "$MEMGPT_ENVIRONMENT" = "DEVELOPMENT" ]; thenecho "Starting in development mode!"uvicorn letta.server.rest_api.app:app --reload --reload-dir /letta --host 0.0.0.0 --port 8283else+ # Production start command here (replace with the actual production command)+ echo "Starting in production mode!"uvicorn letta.server.rest_api.app:app --host 0.0.0.0 --port 8283fi