diff options
| author | rubenwardy <rw@rubenwardy.com> | 2018-05-25 17:41:16 +0100 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2018-05-25 17:41:16 +0100 |
| commit | 079775f5f6599163f3b40a4bc9ddb7669ba91ef7 (patch) | |
| tree | 88553d425c52c6029c7f8bca7c1c0023609c5197 /README.md | |
| parent | 9d91d337d5fc099195a756d331c27bc0780f5ce7 (diff) | |
| download | cheatdb-079775f5f6599163f3b40a4bc9ddb7669ba91ef7.tar.xz | |
Add dependency support to Edit Requests
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -40,3 +40,19 @@ Then run the server: ./rundebug.py Then view in your web browser: http://localhost:5000/ + +## How-tos + +### Create migration + +```sh +# if sqlite +python setup.py -t +rm db.sqlite && python setup.py -t && FLASK_CONFIG=../config.cfg FLASK_APP=app/__init__.py flask db stamp head + +# Create migration +FLASK_CONFIG=../config.cfg FLASK_APP=app/__init__.py flask db migrate + +# Run migration +FLASK_CONFIG=../config.cfg FLASK_APP=app/__init__.py flask db migrate +``` |
