@@ -7,18 +7,24 @@ A single service can be run from the command line.
7
7
8
8
``python runserver_odm2_measurement.py
9
9
--config=odm2_config_measurement.cfg
10
- --connection=postgresql+psycopg2://username:password/db_name ``
10
+ --connection=connection.file ``
11
11
#. ODM2 Timeseries data use case
12
12
13
13
``python runserver_odm2_timeseries.py
14
14
--config=odm2_config_timeseries.cfg
15
- --connection=mysql+mysqldb://username:password/db_name ``
15
+ --connection=connection.file ``
16
16
17
17
Multiple services can be run from the command line
18
18
19
19
``python runserver_multiple.py
20
- --timeseries_connection=mysql+mysqldb://username:password/db_name
21
- --measurement_connection=postgresql+psycopg2://username:password/db_name ``
20
+ --timeseries_connection=connection.file
21
+ --measurement_connection=connection.file ``
22
+
23
+ connection.file contains:
24
+
25
+ ``postgresql+psycopg2://username:password/db_name ``
26
+
27
+ ``mysql+mysqldb://username:password/db_name ``
22
28
23
29
Detailed Instructions
24
30
---------------------
@@ -43,16 +49,16 @@ Follow the steps below to run this example.
43
49
44
50
``python runserver_odm2_measurement.py
45
51
--config=odm2_config_measurement.cfg
46
- --connection=postgresql+psycopg2://username:password/db_name ``
52
+ --connection=connection.file ``
47
53
#. In case of ODM2 timeseries data use case, open a command window in the **examples/flask/odm2/timeseries ** folder and enter:
48
54
49
55
``python runserver_odm2_timeseries.py
50
56
--config=odm2_config_timeseries.cfg
51
- --connection=mysql+mysqldb://username:password/db_name ``
57
+ --connection=connection.file ``
52
58
#. In case of multiple services, open a command window in the **examples/flask/odm2/ ** folder and enter:
53
59
54
60
``python runserver_multiple.py
55
61
--timeseries_connection=mysql+mysqldb://username:password/db_name
56
- --measurement_connection=postgresql+psycopg2://username:password/db_name ``
62
+ --measurement_connection=connection.file ``
57
63
#. In your command window you should see a message indicating that the service
58
64
is running along with instructions for accessing the service.
0 commit comments