Add more instructions for applying ORM migrations for S3 deployment
Maintainer thường phản hồi trong vòng 4 ngày
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 68/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- aws, python
- Lĩnh vực
- cloud, database, documentation
Hướng nghiên cứu
Cập nhật burr/tracking/server/s3/README.md bằng cách sử dụng user script được cung cấp làm tài liệu tham chiếu cho việc thiết lập lần đầu. Ghi lại việc tạo thư mục migration, chạy aerich init với burr.tracking.server.s3.settings.TORTOISE_ORM, chạy aerich init-db, sau đó khởi động Burr với backend S3; công việc được xem là hoàn thành khi README giải thích đầy đủ việc thiết lập cơ sở dữ liệu ban đầu.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Is your feature request related to a problem? Please describe.
The README does not contain the steps to properly set up the DB the first time.
Describe the solution you'd like
We should mention what to do -- we can use the script below for those instructions.
Describe alternatives you've considered
N/A
Additional context
User script that works:
#!/bin/sh
# Echo commands for debugging
set -x
# Signal handling:
trap 'echo "Caught signal, continuing anyway"' INT TERM
echo "Starting script execution"
# Create the directory structure if it doesn't exist
mkdir -p /root/.burr_server
echo "Created directory structure at /root/.burr_server"
# Initialize and apply migrations in the correct path
cd /app
echo "Running aerich init..."
aerich init -t burr.tracking.server.s3.settings.TORTOISE_ORM --location /root/.burr_server/migrations || echo "Aerich init failed or already initialized"
# Run aerich init-db with a timeout to prevent hanging
echo "Running aerich init-db..."
# Use timeout command to ensure we don't hang indefinitely
# aerich init-db will not exit or allow this script to continue without a timeout
timeout 10s aerich init-db > /tmp/aerich.log 2>&1 || echo "aerich init-db timed out or exited with non-zero status"
echo "aerich init-db result:"
cat /tmp/aerich.log
echo "Finished migration steps"
# Print database location information
echo "Database directory contents:"
ls -la /root/.burr_server/
echo "Database file exists check:"
test -f /root/.burr_server/db.sqlite3 && echo "Database file exists" || echo "Database file DOES NOT exist"
# Start the Burr server with verbose output
echo "Starting Burr server with --host 0.0.0.0 --backend s3"
burr --host 0.0.0.0 --backend s3
- Ngôn ngữ chính
- Python
- Star
- 2.6k
- Fork
- 212
- Merge trung bình
- 5 ngày 14 giờ
- Pull request đã merge (30 ngày)
- 26
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của apache/burr
-
Notebook UI launcher should use the current Python interpreterCó thể đã có người làm @sivakumar-mahalingam đã nhận 14 ngày trước. Đang mởstatus/needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 4 ngày
-
astep() passes unprocessed inputs to pre_run_step hooksCó thể đã có người làm @sivakumar-mahalingam đã nhận 14 ngày trước. Đang mởstatus/needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 4 ngày
-
`burr` fails to start when the Python path has a space in itCó thể đã có người làm @enekoreto đã nhận 17 ngày trước. Đang mởstatus/needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 4 ngày
-
Add documentation on how to run the Burr UI serverCó thể làm lại được @iamSerafinnn đã nhận 146 ngày trước và không có pull request nào đang mở. Đang mởarea/ui good first issue kind/documentation priority/low
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 68/100
apache/burr#272 · 5 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
-
stream_result()/astream_result() fire pre_run_step before inputs are processedCó thể đã có người làm @mohitdixit02 đã nhận hôm nay. Đang mởstatus/needs-triage
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 18/100
apache/burr#1017 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 4 ngày
Issue tương tự
-
breaking change
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
check-skill-pages: show fixture build errors when a build failsCó thể đã có người làm @ShahadatTest đã nhận hôm nay. Đang mởgood first issue P2
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
coco-research/coco#439 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
esphome/home-assistant-addon#274 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
endurain-project/endurain#882 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add unit tests for metrics.pyĐang mởgood first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100