FenjuFu commented on issue #524:
URL: https://github.com/apache/burr/issues/524#issuecomment-5091434529

   I verified that this is still missing on current `main`: the README only 
documents the destructive development reset flow, not a 
first-production-deployment bootstrap.
   
   Before I prepare the documentation PR, I found one implementation detail 
worth confirming:
   
   - the issue's working script uses `aerich init` / `aerich init-db` with 
migrations under `BURR_SERVER_ROOT`
   - `burr.tracking.server.s3.initialize_db` is also present, but currently 
fixes its path to `~/.burr_server/db.sqlite3` rather than using 
`settings.DB_PATH`, so documenting it would ignore `BURR_SERVER_ROOT` and 
`BURR_DB_FILENAME`
   
   My proposed PR would add a non-destructive “First deployment / database 
initialization” section that:
   
   1. requires a persistent `BURR_SERVER_ROOT`;
   2. shows the supported one-time initialization command;
   3. separates first initialization from normal `burr --backend s3` startup;
   4. warns not to run the development reset commands in production.
   
   Should the supported production path be Aerich (matching the issue script), 
or should I first fix `initialize_db.py` to honor `settings.DB_PATH` and 
document `python -m burr.tracking.server.s3.initialize_db`? Once confirmed, I 
can cover the chosen command with a focused test/doc validation.
   
   I’m contributing as a member of the iFLYTEK Astron community.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to