]> ToastFreeware Gitweb - philipp/winterrodeln/wradmin.git/blob - readme.txt
0677e90a3d42e353c854d466039366b67d261ac7
[philipp/winterrodeln/wradmin.git] / readme.txt
1 This web application uses flask (http://flask.pocoo.org/) and Python 3.
2
3 Run the application:
4 $ FLASK_APP=wradmin FLASK_DEBUG=1 FLASK_ENV=development WRADMIN_SETTINGS=development.cfg python3 -m flask run
5 $ FLASK_APP=wradmin WRADMIN_SETTINGS=production.cfg python3 -m flask run
6
7 Test the application
8 PYTHONPATH=. FLASK_APP=wradmin WRADMIN_SETTINGS=test.cfg python3 -m unittest
9
10 Run the shell:
11 $ FLASK_APP=wradmin FLASK_DEBUG=1 WRADMIN_SETTINGS=development.cfg python3 -m flask shell
12
13 ipython shell:
14 $ FLASK_APP=wradmin FLASK_DEBUG=1 WRADMIN_SETTINGS=development.cfg ipython
15 >>> import wradmin.model
16 >>> wradmin.model.meta.Session.query(wradmin.model.MwUser).get(1)
17
18 Deploy:
19 Development environmen:
20 $ python setup.py bdist_wheel
21 $ scp bdist/wradmin-2.1.0.dev0-py3-none-any.whl colleen:
22 Server environment:
23 $ bin/wradmin stop
24 $ pip uninstall wradmin
25 $ pip install wradmin-2.1.0.dev0-py3-none-any.whl # or similar
26 $ bin/wradmin start