From 39ed5d501b4dc14718b45c5e357ad0bffaf7e617 Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Sun, 24 Mar 2024 19:47:51 +1300 Subject: [PATCH] update documentation to avoid future migration issues fixes #113 --- INSTALL.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/INSTALL.md b/INSTALL.md index 8d016d19..2cd24ac0 100644 --- a/INSTALL.md +++ b/INSTALL.md @@ -120,9 +120,17 @@ If it does not work check the log file at logs/pyfedi.log for clues.
## Initialise database, and set up admin account -`flask init-db` +`export FLASK_APP=pyfedi.py` + +`flask db upgrade` + +`flask init-db` + (choose a new username, email address, and password for your PyFedi admin account) +If you see an error message "ModuleNotFoundError: No module named 'flask_babel'" then use `venv/bin/flask` instead of `flask` +for all flask commands. + ## Run the app