update documentation to avoid future migration issues fixes #113

This commit is contained in:
rimu 2024-03-24 19:47:51 +13:00
parent a860ce45cd
commit 39ed5d501b

View file

@ -120,9 +120,17 @@ If it does not work check the log file at logs/pyfedi.log for clues.
<div id="initialise-database-and-setup-admin-account"></div>
## Initialise database, and set up admin account
`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.
<div id="run-the-app"></div>
## Run the app