You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hamilton.apache.org by sk...@apache.org on 2026/03/06 06:08:44 UTC
(hamilton) 25/39: Update start_mini_mode.sh to use uv and PostgreSQL 18
This is an automated email from the ASF dual-hosted git repository.
skrawcz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/hamilton.git
commit ee8b73c044a4b84a7f01ea58a9d5e19bc1b68109
Author: Stefan Krawczyk <st...@cs.stanford.edu>
AuthorDate: Tue Feb 24 18:13:17 2026 -0800
Update start_mini_mode.sh to use uv and PostgreSQL 18
Changes:
- postgres:12 → postgres:18 for consistency with docker-compose.yml
- python manage.py → uv run python manage.py for both migrate and runserver
Benefits:
- Uses latest PostgreSQL 18 like the rest of the UI infrastructure
- Consistent with project's uv-based Python environment management
- Ensures mini mode uses the same Python environment as Docker mode
---
ui/start_mini_mode.sh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/ui/start_mini_mode.sh b/ui/start_mini_mode.sh
index aab5f68d..011c343d 100755
--- a/ui/start_mini_mode.sh
+++ b/ui/start_mini_mode.sh
@@ -33,7 +33,7 @@ if ! docker ps --format '{{.Names}}' | grep -q "^hamilton-ui-db$"; then
-e POSTGRES_USER=hamilton \
-e POSTGRES_PASSWORD=hamilton \
-p 5433:5432 \
- postgres:12
+ postgres:18
echo "⏳ Waiting for PostgreSQL to be ready..."
sleep 5
@@ -73,7 +73,7 @@ mkdir -p "$HAMILTON_LOCAL_BLOB_DIR"
echo "🔧 Running database migrations..."
cd ui/backend/server
-python manage.py migrate
+uv run python manage.py migrate
echo ""
echo "✨ Starting Hamilton UI server..."
@@ -85,4 +85,4 @@ echo "Press Ctrl+C to stop the server"
echo ""
# Start the server
-python manage.py runserver 0.0.0.0:8241
+uv run python manage.py runserver 0.0.0.0:8241