summaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
Diffstat (limited to 'README')
-rw-r--r--README21
1 files changed, 19 insertions, 2 deletions
diff --git a/README b/README
index 83a0b9c..fd66c17 100644
--- a/README
+++ b/README
@@ -5,16 +5,33 @@ Klausuren können über ein Webinterface einfach hoch- und heruntergezuladen
werden. Fit ist in Python2 mit Hilfe von Flask geschrieben.
-Setup
--------
+Setup (dev)
+-----------
+
$ git clone git://git.spline.de/klausurenarchiv # Source-Code herunterladen
$ cd klausurenarchiv
$ cp config.cfg.dist config.cfg # Konfigurationsdatei erstellen
$ vim/emacs/nano config.cfg
+ $ virtualenv2 env
+ $ . env/bin/activate
$ pip install -r requirements.txt # Abhängikeiten installieren
$ python manage.py runserver # Test-Server starten
+Deployment Debian Wheezy
+------------------------
+
+ $ cd /var/www/
+ $ git clone git://git.spline.de/klausurenarchiv # Source-Code herunterladen
+ $ cd klausurenarchiv
+ $ cp config.cfg.dist config.cfg # Konfigurationsdatei erstellen
+ $ vim/emacs/nano config.cfg
+ $ apt-get install python-flask python-flaskext.wtf python-virtualenv uwsgi uwsgi-plugin-python
+ $ pip install flask-script
+ $ cp nginx.cfg ...
+ $ cp uwsgi.ini ...
+
+
Config
------
* MAX_CONTENT_LENGTH - Maximale Größe von Dateien beim Upload (in Bytes)