author | ymh <ymh.work@gmail.com> |
Tue, 28 Oct 2014 18:11:16 +0100 | |
changeset 78 | 37bb8e326446 |
parent 45 | 8d2fb4ec85d7 |
permissions | -rw-r--r-- |
26
ebfd0d3cffab
Correction on export_annotation. First working version
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
1 |
|
ebfd0d3cffab
Correction on export_annotation. First working version
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
2 |
# Mons software suite |
ebfd0d3cffab
Correction on export_annotation. First working version
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
3 |
|
78
37bb8e326446
add a lable ro eventsession + add alembic migration for older databases
ymh <ymh.work@gmail.com>
parents:
45
diff
changeset
|
4 |
- To create the virtualenv: |
26
ebfd0d3cffab
Correction on export_annotation. First working version
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
5 |
|
ebfd0d3cffab
Correction on export_annotation. First working version
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
6 |
``` |
ebfd0d3cffab
Correction on export_annotation. First working version
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
7 |
STATIC_DEPS=true pip install -r requirements.txt |
ebfd0d3cffab
Correction on export_annotation. First working version
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
8 |
``` |
ebfd0d3cffab
Correction on export_annotation. First working version
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
9 |
|
78
37bb8e326446
add a lable ro eventsession + add alembic migration for older databases
ymh <ymh.work@gmail.com>
parents:
45
diff
changeset
|
10 |
- Usage for export_annotations.py: |
26
ebfd0d3cffab
Correction on export_annotation. First working version
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
11 |
|
ebfd0d3cffab
Correction on export_annotation. First working version
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
12 |
``` |
45 | 13 |
python export_annotations.py -a http://localhost:8080/p/api/annotation -b http://localhost/~ymh/platform/ldtplatform/ -p <project_guid> -E test -H ANNOT -v -v -s "2014-06-19T12:14:48+02" -R -P "{\"username\": \"<username>\",\"api_key\":\"<username api key>\"}" |
26
ebfd0d3cffab
Correction on export_annotation. First working version
ymh <ymh.work@gmail.com>
parents:
diff
changeset
|
14 |
``` |
78
37bb8e326446
add a lable ro eventsession + add alembic migration for older databases
ymh <ymh.work@gmail.com>
parents:
45
diff
changeset
|
15 |
|
37bb8e326446
add a lable ro eventsession + add alembic migration for older databases
ymh <ymh.work@gmail.com>
parents:
45
diff
changeset
|
16 |
- Alembic usage |
37bb8e326446
add a lable ro eventsession + add alembic migration for older databases
ymh <ymh.work@gmail.com>
parents:
45
diff
changeset
|
17 |
- upgrade: `alembic upgrade head` |
37bb8e326446
add a lable ro eventsession + add alembic migration for older databases
ymh <ymh.work@gmail.com>
parents:
45
diff
changeset
|
18 |
- migrate an existing database : `alembic stamp 3c78152eb874` then `alembic upgrade head` |
37bb8e326446
add a lable ro eventsession + add alembic migration for older databases
ymh <ymh.work@gmail.com>
parents:
45
diff
changeset
|
19 |
- Create empty database: launch application then `alembic stamp head` |