]> ToastFreeware Gitweb - philipp/winterrodeln/wradmin.git/blobdiff - readme.txt
Remove shebang in several files.
[philipp/winterrodeln/wradmin.git] / readme.txt
index 9914f2fa81da671013c2c4481cd813f03fd2d148..0677e90a3d42e353c854d466039366b67d261ac7 100644 (file)
@@ -1,7 +1,7 @@
 This web application uses flask (http://flask.pocoo.org/) and Python 3.
 
 Run the application:
-$ FLASK_APP=wradmin FLASK_DEBUG=1 WRADMIN_SETTINGS=development.cfg python3 -m flask run
+$ FLASK_APP=wradmin FLASK_DEBUG=1 FLASK_ENV=development WRADMIN_SETTINGS=development.cfg python3 -m flask run
 $ FLASK_APP=wradmin WRADMIN_SETTINGS=production.cfg python3 -m flask run
 
 Test the application
@@ -14,3 +14,13 @@ ipython shell:
 $ FLASK_APP=wradmin FLASK_DEBUG=1 WRADMIN_SETTINGS=development.cfg ipython
 >>> import wradmin.model
 >>> wradmin.model.meta.Session.query(wradmin.model.MwUser).get(1)
+
+Deploy:
+Development environmen:
+$ python setup.py bdist_wheel
+$ scp bdist/wradmin-2.1.0.dev0-py3-none-any.whl colleen:
+Server environment:
+$ bin/wradmin stop
+$ pip uninstall wradmin
+$ pip install wradmin-2.1.0.dev0-py3-none-any.whl # or similar
+$ bin/wradmin start