annotate INSTALL.markdown @ 896:237bca579fc7

More Instructions
author Dustin Demuth <dustin@intevation.de>
date Thu, 23 Jul 2015 17:43:06 +0200
parents 8e40f89624d6
children 44e970cec920
rev   line source
880
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
1 # Installation Lada-Client
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
2
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
3 Für allgemeine Informationen schauen Sie in die README Datei.
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
4
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
5 ## Installation
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
6
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
7 Für den Betrieb des Lada-Clients muss dieser innerhalb einer Webserver-Umgebung
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
8 installiert werden. Die folgenden Hinweise geben eine Kurze Anleitung zur
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
9 Installation eines Apache-Webserver.
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
10
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
11 Hinweis: Für den Betrieb einer vollständigen Installation ist neben dem
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
12 Klienten auch die Installation eines Servers und entsprechender Datenbank
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
13 notwendig. Für die Installation des Servers folgen Sie bitte den Hinweisen in
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
14 der README Datei des Server-Pakets. Siehe Projektwebseite. Optional: Die
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
15 Authentifizierung kann gegen einen LDAP-Server durchgeführt werden. Beispiele
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
16 finde sich in dem Installationbeispiel.
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
17
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
18 Die folgenden Hinweise beziehen sich auf die Installation und Einrichtung auf
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
19 Basis eines Oracle-RedHat Linux Systems.
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
20
896
237bca579fc7 More Instructions
Dustin Demuth <dustin@intevation.de>
parents: 888
diff changeset
21 Der Lada-Client ist eine Anwendung die auf dem Framework extJs 4.2.1 basiert,
237bca579fc7 More Instructions
Dustin Demuth <dustin@intevation.de>
parents: 888
diff changeset
22 Damit der Client funktiniert müssen Sie dieses Framework herunterladen und
237bca579fc7 More Instructions
Dustin Demuth <dustin@intevation.de>
parents: 888
diff changeset
23 entpacken. Dies kann direkt in das root-Verzeichnis des Lada-Clients geschehen.
237bca579fc7 More Instructions
Dustin Demuth <dustin@intevation.de>
parents: 888
diff changeset
24
237bca579fc7 More Instructions
Dustin Demuth <dustin@intevation.de>
parents: 888
diff changeset
25 Für Applikationen die ebenfalls unter der GPL lizenziert wird - so wie der Lada
237bca579fc7 More Instructions
Dustin Demuth <dustin@intevation.de>
parents: 888
diff changeset
26 Client - kann extJs als [GPL Version heruntergeladen](http://cdn.sencha.com/ext/gpl/ext-4.2.1-gpl.zip)
237bca579fc7 More Instructions
Dustin Demuth <dustin@intevation.de>
parents: 888
diff changeset
27 werden.
237bca579fc7 More Instructions
Dustin Demuth <dustin@intevation.de>
parents: 888
diff changeset
28
237bca579fc7 More Instructions
Dustin Demuth <dustin@intevation.de>
parents: 888
diff changeset
29 Legen Sie nach dem Entpacken einen Symlink auf dieses Verzeichnis an:
237bca579fc7 More Instructions
Dustin Demuth <dustin@intevation.de>
parents: 888
diff changeset
30
237bca579fc7 More Instructions
Dustin Demuth <dustin@intevation.de>
parents: 888
diff changeset
31 ```
237bca579fc7 More Instructions
Dustin Demuth <dustin@intevation.de>
parents: 888
diff changeset
32 ln -s ext-4.2.1.883 extjs
237bca579fc7 More Instructions
Dustin Demuth <dustin@intevation.de>
parents: 888
diff changeset
33 ```
237bca579fc7 More Instructions
Dustin Demuth <dustin@intevation.de>
parents: 888
diff changeset
34
886
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
35 ### Kompilieren und Minifizieren der Anwendung
880
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
36
896
237bca579fc7 More Instructions
Dustin Demuth <dustin@intevation.de>
parents: 888
diff changeset
37 Zum Kompilieren der Anwendung kommt das Tool Sencha Cmd 4.0.x zum Einsatz.
880
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
38 Mit Hilfe dieses Tools kann der Quellcode in eine einzelne Datei zusammengefasst
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
39 und minifiziert werden. Dies beschleunigt das Laden der Anwendung im Browser erheblich
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
40
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
41 Sencha bietet Sencha Cmd zum [Download](https://www.sencha.com/products/extjs/cmd-download/)
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
42 an. Beachten Sie: Sencha Cmd ist keine freie Software.
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
43
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
44 Die Fa. Sencha beschreibt die Installation von Sencha Cmd in der
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
45 [Dokumentation von ExtJs](http://docs.sencha.com/extjs/4.2.1/#!/guide/command)
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
46
886
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
47 Zur Installation von Sencha Cmd werden Ruby und Java benötigt.
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
48
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
49 Bevor Sie die Anwendung kompilieren können, müssen Sie die im Abschnitt
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
50 *Lizenzen und Bibliotheken* genannten Bibliotheken zum Projekt hinzufügen.
880
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
51
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
52
886
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
53 Zum Kompilieren nutzen Sie die folgende Anweisung:
880
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
54
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
55 ```
884
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
56 $PATHTOSENCHACMD --sdk-path $PATHTOEXTJS compile \
886
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
57 --classpath=app,resources/lib/ext/upload,resources/lib/ext/i18n page \
884
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
58 -yui -i index.html -o build/index.html
880
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
59 ```
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
60
896
237bca579fc7 More Instructions
Dustin Demuth <dustin@intevation.de>
parents: 888
diff changeset
61 Ersetzen Sie heirbei `$PATHTOSENCHACMD` mit dem Pfad zu Ihrer Installation von
237bca579fc7 More Instructions
Dustin Demuth <dustin@intevation.de>
parents: 888
diff changeset
62 Sencha Cmd. $PATHTOEXTJS gibt den Pfad an, an dem sich Ihre Kopie von extJs
237bca579fc7 More Instructions
Dustin Demuth <dustin@intevation.de>
parents: 888
diff changeset
63 befindet.
237bca579fc7 More Instructions
Dustin Demuth <dustin@intevation.de>
parents: 888
diff changeset
64
237bca579fc7 More Instructions
Dustin Demuth <dustin@intevation.de>
parents: 888
diff changeset
65
880
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
66 Das Verzeichnis `build` enthält dann eine Datei `index.html` und eine Datei
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
67 `lada.js`. Die Datei `lada.js` ist eine komprimierte Version der Anwendung und
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
68 enthält alle benötigten Klassen.
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
69 Für die Produktivversion müssen die folgenden Dateien zusätzlich in das
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
70 Verzeichnis `build` kopiert werden:
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
71
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
72 | Quelldatei | Zieldatei |
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
73 |--------------------------------------------------------|-------------------------------------------------------------|
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
74 | extjs/resources/css/ext-all-gray.css | build/extjs/resources/css/ext-all-gray.css |
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
75 | extjs/resources/ext-theme-gray/ext-theme-gray-all.css | build/extjs/resources/ext-theme-gray/ext-theme-gray-all.css |
896
237bca579fc7 More Instructions
Dustin Demuth <dustin@intevation.de>
parents: 888
diff changeset
76 | resources/i18n/Lada.properties | build/resources/i18n/Lada.properties |
237bca579fc7 More Instructions
Dustin Demuth <dustin@intevation.de>
parents: 888
diff changeset
77 | resources/i18n/Lada_de-DE.properties | build/resources/i18n/Lada_de-DE.properties |
237bca579fc7 More Instructions
Dustin Demuth <dustin@intevation.de>
parents: 888
diff changeset
78 | resources/img/* | build/ressources/img* |
237bca579fc7 More Instructions
Dustin Demuth <dustin@intevation.de>
parents: 888
diff changeset
79 | resources/lib/* (alles ausser ext Ordner) | build/resources/lib |
880
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
80
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
81
886
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
82 Um OpenLayers als "Single File" Version bereit zu haben, gehen Sie in das Verzeichnis
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
83 `build/resources/lib/OpenLayers` und führen Sie den folgenden Befehl aus:
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
84
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
85 ```
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
86 python build.py
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
87 ```
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
88
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
89 Dies erstellt eine Datei `OpenLayers.js` innerhalb des Verzeichnisses.
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
90 Diese wird in der Webanwendung referenziert.
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
91
880
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
92 ### Installation Apache
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
93 Zunächst wird der Apache Webserver aus dem Repository installiert:
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
94
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
95 ```
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
96 yum install httpd mod_ssl
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
97 service httpd start
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
98 ```
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
99
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
100 ### Aktivierung der Apache Module
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
101
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
102 Die Konfiguration, welche Module beim Start des Apache geladen werden, erfolgt
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
103 in der Datei `/etc/httpd/conf`. Die zu ladende Module sind in dieser Datei mit
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
104 der Option `LoadModule` angegeben. Folgende Module werden benötigt:
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
105
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
106 * headers_module: Setzten der Header nach der Authentifizierung
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
107 * proxy_module: Reverse Proxy des Apache zum Jboss-Server
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
108
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
109 ### Einrichtung der Anwendung
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
110
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
111 Zunächst hinterlegen wir die Anwendung in dem Server. Hierzu verwenden wir die
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
112 gebaute Version, welche sich im `build` Ordner befindet.
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
113
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
114 ```
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
115 cd /var/www/html
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
116 mkdir lada
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
117 cp -r build/* lada
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
118 ```
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
119
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
120 *Wichtig um SELinux dazu zu überreden das neue Verzeichnis auch zu servieren:*
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
121
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
122 ```
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
123 restorecon -Rv /var/www/html/
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
124 ```
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
125
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
126 Die Anwendung sollte nun bereits unter der Adresse `http://localhost/lada`
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
127 erreichbar sein.
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
128
888
Dustin Demuth <dustin@intevation.de>
parents: 886
diff changeset
129 Damit die Anwendung vollständig funktioniert, müssen ggfs. noch weitere
884
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
130 Bibliotheken hinzugefügt werden.
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
131 Dies wird im Abschnitt *Lizenzen und Bibliotheken* näher beschrieben
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
132
880
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
133 ### Konfiguration Proxy Server
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
134
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
135 Damit der Client eine Verbindung zu dem Server aufbauen kann, um von dort
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
136 Daten laden zu können, ist es notwendig den Server weiter zu konfigurieren.
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
137
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
138 ```
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
139 togglesebool httpd_can_network_connect
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
140 service httpd restart
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
141 ```
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
142
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
143 Dies erlaubt dem Apache grundsätzlich sich mit einem anderen Dienst zu verbinden.
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
144 Nun muss noch ein Reverse-Proxy eingerichtet werden. Dieser ist nur für
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
145 bestimmte Adressen aktiv.
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
146
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
147 Folgende Datei sollte unter `/etc/httpd/conf.d/lada.conf` angelegt werden:
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
148 ```
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
149 <VirtualHost *:80>
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
150 ServerAdmin webmaster@localhost
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
151 #ServerName dummy-host.example.com
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
152 ErrorLog logs/lada-error_log
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
153 CustomLog logs/lada-access_log common
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
154
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
155 # Set multiple Proxys
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
156 ProxyPass /lada/server http://localhost:8080/lada
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
157 ProxyPassReverse /lada/server http://localhost:8080/lada
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
158 </VirtualHost>
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
159 ```
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
160 Alle Anfragen an die Adresse `/lada/service`, werden nun an den Server weitergeleitet.
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
161
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
162 ### Authentifizierung
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
163
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
164 Die Authentifizierung geschieht gegen einen OpenID-Server.
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
165
c63ecb95dffb move INSTALL to a markdown File
Dustin Demuth <dustin@intevation.de>
parents:
diff changeset
166 Der Lada-Client leitet in Zusammenarbeit mit dem Server automatisch an diesen weiter.
884
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
167
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
168 # Lizenzen und Bibliotheken
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
169
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
170 Die Anwendung verwendet mehrere Unterkomponenten, diese sind typischerweise im
886
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
171 Ordner `resources/lib` zu finden.
884
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
172
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
173 Folgende Bibliotheken werden neben ExtJs verwendet:
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
174
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
175 * Filesaver.js
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
176 https://github.com/eligrey/FileSaver.js
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
177 MIT - License
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
178 * Blob.js
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
179 https://github.com/eligrey/Blob.js
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
180 MIT - License
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
181 * Openlayers 2.13.1
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
182 http://www.openlayers.org
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
183 https://github.com/openlayers/openlayers
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
184 2-Clause BSD-License
886
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
185
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
186 Diese sind im Ordner `resources/lib` zu finden, und werden in der `Index.html`
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
187 referenziert.
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
188
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
189 Im Ordner resources/lib/ext befinden sich Bibliotheken die ExtJs ergänzen und in
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
190 der Datei `app.js` aufgeführt werden.
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
191
884
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
192 * Ext.i18n.Bundle 0.3.3 (referenced as Ext.i18n in app.js)
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
193 https://github.com/elmasse/Ext.i18n.Bundle/tree/v0.3.3
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
194 MIT - License
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
195 * Ext.ux.upload 1.1.1
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
196 https://github.com/ivan-novakov/extjs-upload-widget/tree/1.1.1
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
197 3-Clause BSD-License
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
198
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
199
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
200 ## Installation der Bibliotheken
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
201
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
202 Die aufgeführten Bibliotheken können über den Link zu Github als zip-Datei
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
203 heruntergeladen werden.
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
204
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
205 Dabei ist auf die korrekte Versionnummer zu achten, falls dies in der Liste
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
206 oben angegeben wurde.
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
207
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
208 ```
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
209 cd /var/www/html/lada/resources/
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
210 mkdir lib/
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
211 cd lib
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
212 wget https://github.com/eligrey/FileSaver.js/archive/master.zip -O FileSaver-js.zip
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
213 wget https://github.com/eligrey/Blob.js/archive/master.zip -O Blob-js.zip
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
214 wget https://github.com/openlayers/openlayers/archive/release-2.13.1.zip -O OpenLayers-2-13-1.zip
886
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
215
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
216 mkdir ext
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
217 cd ext
884
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
218 wget https://github.com/elmasse/Ext.i18n.Bundle/archive/v0.3.3.zip -O Ext-i18n-Bundle-v0-3-3.zip
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
219 wget https://github.com/ivan-novakov/extjs-upload-widget/archive/1.1.1.zip -O Ext-ux-Upload-1-1-1.zip
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
220 ```
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
221
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
222 Die Dateien sind im Ordner `resources/lib/` zu entpacken
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
223
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
224 ```
886
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
225 cd ..
884
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
226 unzip FileSaver-js.zip
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
227 unzip Blob-js.zip
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
228 unzip OpenLayers-2-13-1.zip
886
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
229
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
230 cd ext
884
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
231 unzip Ext-i18n-Bundle-v0-3-3.zip
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
232 unzip Ext-ux-Upload-1-1-1.zip
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
233 ```
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
234
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
235 Zum einfacheren Zugriff auf die Bibliothek, symbolische Links erstellen.
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
236 Dies is praktisch wenn die Bibliothek ausgetauscht wird,
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
237 dann müssen die Quelltexte nicht angepasst werden
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
238
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
239 ```
886
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
240 cd ..
884
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
241 ln -s Blob.js-master Blob
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
242 ln -s FileSaver.js-master FileSaver
886
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
243 ln -s openlayers-release-2.13.1/build OpenLayers
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
244
03f3ef7e480b Install.markdown
Dustin Demuth <dustin@intevation.de>
parents: 884
diff changeset
245 cd ext
884
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
246 ln -s Ext.i18n.Bundle-0.3.3/i18n i18n
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
247 ln -s extjs-upload-widget-1.1.1/lib/upload upload
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
248 ```
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
249
98d7a325f894 More Instructions: How to deal with libraries
Dustin Demuth <dustin@intevation.de>
parents: 880
diff changeset
250 Somit ist die Installation der Bibliotheken abgeschlossen.

http://lada.wald.intevation.org