Change haldis.py to app.py in README
This commit is contained in:
parent
5b2f6de323
commit
a44f02e2c7
1 changed files with 11 additions and 11 deletions
22
README.md
22
README.md
|
@ -16,19 +16,19 @@ Be lazier today!
|
|||
There is a special script to get started with the project. Just run it in the root of the project.
|
||||
|
||||
./first-setup.sh
|
||||
|
||||
|
||||
This will create a virtual environment, install the necessary dependencies and will give you the option to seed the database.
|
||||
|
||||
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
|
||||
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
|
||||
|
||||
cd app
|
||||
python haldis.py db upgrade
|
||||
|
||||
python3 app.py db upgrade
|
||||
|
||||
You can now still seed the database by running
|
||||
|
||||
./populate-db.sh
|
||||
|
||||
|
||||
in the root folder of the project.
|
||||
|
||||
|
||||
|
@ -38,15 +38,15 @@ Activate the virtual environment using
|
|||
|
||||
Finally run the webserver with
|
||||
|
||||
python app/haldis.py runserver
|
||||
|
||||
python3 app/app.py runserver
|
||||
|
||||
## Development
|
||||
|
||||
### Changing the database
|
||||
|
||||
1. Update models located in 'app/models.py'
|
||||
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`
|
||||
2. Run `python app/app.py db migrate` to create a new migration.
|
||||
3. Apply the changes to the database using `python app/app.py db upgrade`
|
||||
|
||||
### Adding dependencies/libraries
|
||||
|
||||
|
@ -61,4 +61,4 @@ For more information about managing the dependencies see [jazzband/pip-tools: A
|
|||
|
||||
## Authors
|
||||
|
||||
* **Feliciaan De Palmenaer** - *Initial work* - [Github](https://github.com/feliciaan)
|
||||
* **Feliciaan De Palmenaer** - *Initial work* - [Github](https://github.com/feliciaan)
|
||||
|
|
Loading…
Reference in a new issue