From c68fe1f7b99120e541132e7ce935da760b0662e9 Mon Sep 17 00:00:00 2001 From: mcbloch Date: Fri, 5 Apr 2019 02:12:39 +0200 Subject: [PATCH] add command to run the server/manage deps --- README.md | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 097b86d..be6e006 100644 --- a/README.md +++ b/README.md @@ -17,18 +17,27 @@ This will create a virtual environment, install the necessary dependencies and w If you are using a database other then sqlite you will first need to configure the correct uri to the database in the generated 'config.py' file. Afterwards upgrade the database to the latest version using - python haldis.py db upgrade + python app/haldis.py db upgrade You can now still seed the database by running ./populate-db.sh in the root folder of the project. + + +Activate the virtual environment using + + source venv/bin/activate + +Finally run the webserver with + + python app/haldis.py runserver ## Development ### Changing the database 1. Update models located in 'app/models.py' -2. Run `python haldis.py db migrate` to create a new migration. -3. Apply the changes to the database using `python haldis.py db upgrade` +2. Run `python app/haldis.py db migrate` to create a new migration. +3. Apply the changes to the database using `python app/haldis.py db upgrade`